From: Oleg Broytman Date: Fri, 19 Jun 2015 02:04:55 +0000 (+0300) Subject: .shellrc: minor refactoring X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=29ac3fe1350498025685789e626dd2b8832428d2;p=dotfiles.git .shellrc: minor refactoring --- diff --git a/.shellrc b/.shellrc index 38c547e..d2007fa 100644 --- a/.shellrc +++ b/.shellrc @@ -47,7 +47,7 @@ case "$SHELL" in for cmd in builtin cgmem_nice command dbus-launch exec \ killall man nice nohup pidof pidOf KillAll pgrep pkill psg pswg su sudo \ time whence whereis which xargs; do - ! has_completion $cmd && complete -A command -o default $cmd + ! has_completion $cmd && complete -o default -A command $cmd done for cmd in dig host nslookup nc netcat nmap p ping ping6 socat \ @@ -59,7 +59,7 @@ case "$SHELL" in for cmd in distribute ftp lftp r rsync \ s scp ssh smbclient tcpdump tshark wireshark; do - ! has_completion $cmd && complete -A hostname -o default $cmd; + ! has_completion $cmd && complete -o default -A hostname $cmd; done complete -A job bg fg j jobs wait