[ SYSTEM ]: Linux srv.persadacompanies.com 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64
[ SERVER ]: Apache | PHP: 8.4.19
[ USER ]: persadamedika | IP: 45.64.1.108
GEFORCE FILE MANAGER
/
usr
/
share
/
bash-completion
/
completions
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 addpart
447 B
SET
[ EDIT ]
|
[ DEL ]
📄 blkdiscard
639 B
SET
[ EDIT ]
|
[ DEL ]
📄 blkid
2,094 B
SET
[ EDIT ]
|
[ DEL ]
📄 blkzone
971 B
SET
[ EDIT ]
|
[ DEL ]
📄 blockdev
726 B
SET
[ EDIT ]
|
[ DEL ]
📄 bootctl
1,937 B
SET
[ EDIT ]
|
[ DEL ]
📄 busctl
8,015 B
SET
[ EDIT ]
|
[ DEL ]
📄 bwrap
919 B
SET
[ EDIT ]
|
[ DEL ]
📄 cal
426 B
SET
[ EDIT ]
|
[ DEL ]
📄 cfdisk
546 B
SET
[ EDIT ]
|
[ DEL ]
📄 chcpu
1,510 B
SET
[ EDIT ]
|
[ DEL ]
📄 chfn
445 B
SET
[ EDIT ]
|
[ DEL ]
📄 chmem
501 B
SET
[ EDIT ]
|
[ DEL ]
📄 chrt
920 B
SET
[ EDIT ]
|
[ DEL ]
📄 chsh
504 B
SET
[ EDIT ]
|
[ DEL ]
📄 col
460 B
SET
[ EDIT ]
|
[ DEL ]
📄 colcrt
484 B
SET
[ EDIT ]
|
[ DEL ]
📄 colrm
509 B
SET
[ EDIT ]
|
[ DEL ]
📄 column
725 B
SET
[ EDIT ]
|
[ DEL ]
📄 coredumpctl
3,715 B
SET
[ EDIT ]
|
[ DEL ]
📄 cpupower
3,503 B
SET
[ EDIT ]
|
[ DEL ]
📄 ctrlaltdel
335 B
SET
[ EDIT ]
|
[ DEL ]
📄 delpart
526 B
SET
[ EDIT ]
|
[ DEL ]
📄 devlink
27,404 B
SET
[ EDIT ]
|
[ DEL ]
📄 dkms.bash-completion
2,673 B
SET
[ EDIT ]
|
[ DEL ]
📄 dmesg
1,182 B
SET
[ EDIT ]
|
[ DEL ]
📄 dnf
10,212 B
SET
[ EDIT ]
|
[ DEL ]
📄 dracut
3,580 B
SET
[ EDIT ]
|
[ DEL ]
📄 eject
1,189 B
SET
[ EDIT ]
|
[ DEL ]
📄 ethtool
24,075 B
SET
[ EDIT ]
|
[ DEL ]
📄 fallocate
721 B
SET
[ EDIT ]
|
[ DEL ]
📄 fdformat
566 B
SET
[ EDIT ]
|
[ DEL ]
📄 fdisk
1,834 B
SET
[ EDIT ]
|
[ DEL ]
📄 fincore
916 B
SET
[ EDIT ]
|
[ DEL ]
📄 findfs
695 B
SET
[ EDIT ]
|
[ DEL ]
📄 findmnt
3,154 B
SET
[ EDIT ]
|
[ DEL ]
📄 firewall-cmd
10,604 B
SET
[ EDIT ]
|
[ DEL ]
📄 flock
874 B
SET
[ EDIT ]
|
[ DEL ]
📄 fsck
787 B
SET
[ EDIT ]
|
[ DEL ]
📄 fsck.cramfs
684 B
SET
[ EDIT ]
|
[ DEL ]
📄 fsck.minix
383 B
SET
[ EDIT ]
|
[ DEL ]
📄 fsfreeze
524 B
SET
[ EDIT ]
|
[ DEL ]
📄 fstrim
677 B
SET
[ EDIT ]
|
[ DEL ]
📄 fwupdagent
610 B
SET
[ EDIT ]
|
[ DEL ]
📄 fwupdmgr
3,741 B
SET
[ EDIT ]
|
[ DEL ]
📄 fwupdtool
3,341 B
SET
[ EDIT ]
|
[ DEL ]
📄 gapplication
1,389 B
SET
[ EDIT ]
|
[ DEL ]
📄 gdbus
935 B
SET
[ EDIT ]
|
[ DEL ]
📄 getopt
815 B
SET
[ EDIT ]
|
[ DEL ]
📄 grub
11,681 B
SET
[ EDIT ]
|
[ DEL ]
📄 gsettings
2,829 B
SET
[ EDIT ]
|
[ DEL ]
📄 hexdump
1,007 B
SET
[ EDIT ]
|
[ DEL ]
📄 hostnamectl
2,281 B
SET
[ EDIT ]
|
[ DEL ]
📄 hwclock
938 B
SET
[ EDIT ]
|
[ DEL ]
📄 ionice
1,161 B
SET
[ EDIT ]
|
[ DEL ]
📄 ipcmk
576 B
SET
[ EDIT ]
|
[ DEL ]
📄 ipcrm
1,423 B
SET
[ EDIT ]
|
[ DEL ]
📄 ipcs
514 B
SET
[ EDIT ]
|
[ DEL ]
📄 isosize
529 B
SET
[ EDIT ]
|
[ DEL ]
📄 journalctl
5,892 B
SET
[ EDIT ]
|
[ DEL ]
📄 kernel-install
1,810 B
SET
[ EDIT ]
|
[ DEL ]
📄 kmod
3,235 B
SET
[ EDIT ]
|
[ DEL ]
📄 last
949 B
SET
[ EDIT ]
|
[ DEL ]
📄 ldattach
1,472 B
SET
[ EDIT ]
|
[ DEL ]
📄 localectl
3,739 B
SET
[ EDIT ]
|
[ DEL ]
📄 logger
1,553 B
SET
[ EDIT ]
|
[ DEL ]
📄 loginctl
4,251 B
SET
[ EDIT ]
|
[ DEL ]
📄 look
683 B
SET
[ EDIT ]
|
[ DEL ]
📄 losetup
1,721 B
SET
[ EDIT ]
|
[ DEL ]
📄 lsblk
1,961 B
SET
[ EDIT ]
|
[ DEL ]
📄 lscpu
1,018 B
SET
[ EDIT ]
|
[ DEL ]
📄 lsinitrd
1,983 B
SET
[ EDIT ]
|
[ DEL ]
📄 lsipc
1,310 B
SET
[ EDIT ]
|
[ DEL ]
📄 lslocks
1,069 B
SET
[ EDIT ]
|
[ DEL ]
📄 lslogins
1,704 B
SET
[ EDIT ]
|
[ DEL ]
📄 lsmem
1,054 B
SET
[ EDIT ]
|
[ DEL ]
📄 lsns
1,167 B
SET
[ EDIT ]
|
[ DEL ]
📄 mcookie
599 B
SET
[ EDIT ]
|
[ DEL ]
📄 mesg
412 B
SET
[ EDIT ]
|
[ DEL ]
📄 mkfs
638 B
SET
[ EDIT ]
|
[ DEL ]
📄 mkfs.cramfs
821 B
SET
[ EDIT ]
|
[ DEL ]
📄 mkfs.minix
714 B
SET
[ EDIT ]
|
[ DEL ]
📄 mkswap
841 B
SET
[ EDIT ]
|
[ DEL ]
📄 mokutil
1,177 B
SET
[ EDIT ]
|
[ DEL ]
📄 more
528 B
SET
[ EDIT ]
|
[ DEL ]
📄 mountpoint
487 B
SET
[ EDIT ]
|
[ DEL ]
📄 namei
500 B
SET
[ EDIT ]
|
[ DEL ]
📄 nmcli
3,841 B
SET
[ EDIT ]
|
[ DEL ]
📄 nsenter
1,171 B
SET
[ EDIT ]
|
[ DEL ]
📄 p11-kit
520 B
SET
[ EDIT ]
|
[ DEL ]
📄 partx
1,249 B
SET
[ EDIT ]
|
[ DEL ]
📄 pip3
286 B
SET
[ EDIT ]
|
[ DEL ]
📄 pivot_root
387 B
SET
[ EDIT ]
|
[ DEL ]
📄 portablectl
3,986 B
SET
[ EDIT ]
|
[ DEL ]
📄 prlimit
1,329 B
SET
[ EDIT ]
|
[ DEL ]
📄 raw
482 B
SET
[ EDIT ]
|
[ DEL ]
📄 readprofile
679 B
SET
[ EDIT ]
|
[ DEL ]
📄 rename
655 B
SET
[ EDIT ]
|
[ DEL ]
📄 renice
784 B
SET
[ EDIT ]
|
[ DEL ]
📄 resizepart
568 B
SET
[ EDIT ]
|
[ DEL ]
📄 resolvectl
7,066 B
SET
[ EDIT ]
|
[ DEL ]
📄 rev
432 B
SET
[ EDIT ]
|
[ DEL ]
📄 rfkill
929 B
SET
[ EDIT ]
|
[ DEL ]
📄 rtcwake
1,081 B
SET
[ EDIT ]
|
[ DEL ]
📄 runuser
864 B
SET
[ EDIT ]
|
[ DEL ]
📄 script
667 B
SET
[ EDIT ]
|
[ DEL ]
📄 scriptreplay
625 B
SET
[ EDIT ]
|
[ DEL ]
📄 semanage
6,570 B
SET
[ EDIT ]
|
[ DEL ]
📄 setarch
790 B
SET
[ EDIT ]
|
[ DEL ]
📄 setpriv
2,370 B
SET
[ EDIT ]
|
[ DEL ]
📄 setsebool
1,816 B
SET
[ EDIT ]
|
[ DEL ]
📄 setsid
440 B
SET
[ EDIT ]
|
[ DEL ]
📄 setterm
2,591 B
SET
[ EDIT ]
|
[ DEL ]
📄 sfdisk
2,012 B
SET
[ EDIT ]
|
[ DEL ]
📄 su
864 B
SET
[ EDIT ]
|
[ DEL ]
📄 swaplabel
635 B
SET
[ EDIT ]
|
[ DEL ]
📄 swapoff
743 B
SET
[ EDIT ]
|
[ DEL ]
📄 swapon
1,529 B
SET
[ EDIT ]
|
[ DEL ]
📄 syspurpose
720 B
SET
[ EDIT ]
|
[ DEL ]
📄 systemctl
13,575 B
SET
[ EDIT ]
|
[ DEL ]
📄 systemd-analyze
6,788 B
SET
[ EDIT ]
|
[ DEL ]
📄 systemd-cat
1,911 B
SET
[ EDIT ]
|
[ DEL ]
📄 systemd-cgls
2,344 B
SET
[ EDIT ]
|
[ DEL ]
📄 systemd-cgtop
2,096 B
SET
[ EDIT ]
|
[ DEL ]
📄 systemd-delta
1,951 B
SET
[ EDIT ]
|
[ DEL ]
📄 systemd-detect-virt
1,361 B
SET
[ EDIT ]
|
[ DEL ]
📄 systemd-path
1,901 B
SET
[ EDIT ]
|
[ DEL ]
📄 systemd-resolve
3,189 B
SET
[ EDIT ]
|
[ DEL ]
📄 systemd-run
4,869 B
SET
[ EDIT ]
|
[ DEL ]
📄 taskset
1,207 B
SET
[ EDIT ]
|
[ DEL ]
📄 timedatectl
2,984 B
SET
[ EDIT ]
|
[ DEL ]
📄 trust
2,040 B
SET
[ EDIT ]
|
[ DEL ]
📄 tuned-adm
604 B
SET
[ EDIT ]
|
[ DEL ]
📄 udevadm
3,766 B
SET
[ EDIT ]
|
[ DEL ]
📄 ul
655 B
SET
[ EDIT ]
|
[ DEL ]
📄 unshare
809 B
SET
[ EDIT ]
|
[ DEL ]
📄 utmpdump
475 B
SET
[ EDIT ]
|
[ DEL ]
📄 uuidgen
657 B
SET
[ EDIT ]
|
[ DEL ]
📄 uuidparse
727 B
SET
[ EDIT ]
|
[ DEL ]
📄 wall
634 B
SET
[ EDIT ]
|
[ DEL ]
📄 wdctl
1,371 B
SET
[ EDIT ]
|
[ DEL ]
📄 whereis
535 B
SET
[ EDIT ]
|
[ DEL ]
📄 wipefs
1,192 B
SET
[ EDIT ]
|
[ DEL ]
📄 write
431 B
SET
[ EDIT ]
|
[ DEL ]
📄 zramctl
1,273 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: nmcli
# nmcli(1) completion _nmcli_array_delete_at() { eval "local ARRAY=(\"\${$1[@]}\")" local i local tmp=() local lower=$2 local upper=${3:-$lower} # for some reason the following fails. So this clumsy workaround... # A=(a "") # echo " >> ${#A[@]}" # >> 2 # A=("${A[@]:1}") # echo " >> ${#A[@]}" # >> 0 # ... seriously??? for i in "${!ARRAY[@]}"; do if [[ "$i" -lt "$2" || "$i" -gt "${3-$2}" ]]; then tmp=("${tmp[@]}" "${ARRAY[$i]}") fi done eval "$1=(\"\${tmp[@]}\")" } _nmcli() { local cur prev words cword i output _init_completion || return # we don't care about any arguments after the current cursor position # because we only parse from left to right. So, if there are some arguments # right of the cursor, just ignore them. Also don't care about ${words[0]}. _nmcli_array_delete_at words $((cword+1)) ${#words[@]} _nmcli_array_delete_at words 0 # _init_completion returns the words with all the quotes and escaping # characters. We don't care about them, drop them at first. for i in ${!words[@]}; do words[i]="$(printf '%s' "${words[i]}" | xargs printf '%s\n' 2>/dev/null || true)" done # In case the cursor is not at the end of the line, # $cur consists of spaces that we want do remove. # For example: `nmcli connection modify id <TAB> lo` if [[ "$cur" =~ ^[[:space:]]+ ]]; then cur='' fi output="$(nmcli --complete-args "${words[@]}" 2>/dev/null)" # Bail out early if we're completing a file name if [ $? = 65 ]; then compopt -o default COMPREPLY=() return 0 fi local IFS=$'\n' COMPREPLY=( $( compgen -W '$output' -- $cur ) ) # Now escape special characters (spaces, single and double quotes), # so that the argument is really regarded a single argument by bash. # See http://stackoverflow.com/questions/1146098/properly-handling-spaces-and-quotes-in-bash-completion local escaped_single_quote="'\''" local i=0 local entry for entry in ${COMPREPLY[*]} do if [[ "${cur:0:1}" == "'" ]]; then # started with single quote, escaping only other single quotes # [']bla'bla"bla\bla bla --> [']bla'\''bla"bla\bla bla COMPREPLY[$i]="${entry//\'/${escaped_single_quote}}" elif [[ "${cur:0:1}" == '"' ]]; then # started with double quote, escaping all double quotes and all backslashes # ["]bla'bla"bla\bla bla --> ["]bla'bla\"bla\\bla bla entry="${entry//\\/\\\\}" entry="${entry//\"/\\\"}" entry="${entry//!/\"\\!\"}" COMPREPLY[$i]="$entry" else # no quotes in front, escaping _everything_ # [ ]bla'bla"bla\bla bla --> [ ]bla\'bla\"bla\\bla\ bla entry="${entry//\\/\\\\}" entry="${entry//\'/\\\'}" entry="${entry//\"/\\\"}" entry="${entry// /\\ }" entry="${entry//\(/\\(}" entry="${entry//)/\\)}" entry="${entry//!/\\!}" entry="${entry//&/\\&}" COMPREPLY[$i]="$entry" fi (( i++ )) done # Work-around bash_completion issue where bash interprets a colon # as a separator. # Colon is escaped here. Change "\\:" back to ":". # See also: # http://stackoverflow.com/questions/28479216/how-to-give-correct-suggestions-to-tab-complete-when-my-words-contains-colons # http://stackoverflow.com/questions/2805412/bash-completion-for-maven-escapes-colon/12495727 i=0 for entry in ${COMPREPLY[*]} do entry="${entry//\\\\:/:}" COMPREPLY[$i]=${entry} (( i++ )) done } && complete -F _nmcli nmcli # ex: ts=4 sw=4 et filetype=sh