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 \
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
tmux() {
case "$TERM" in
rxvt)
- TMUX_SAVE_TERM="$TERM"
- TERM=rxvt-unicode
+ TERM=rxvt-unicode command tmux "$@"
;;
- esac
-
- command tmux "$@"
- rc=$?
- [ -n "$TMUX_SAVE_TERM" ] && TERM="$TMUX_SAVE_TERM"
- unset TMUX_SAVE_TERM
- return $rc
+ *)
+ command tmux "$@"
+ ;;
+ esac
}