Fix issues that kept some of the examples from actually working.

PR:		144534
Submitted by:	Nicolas Edel
MFC after:	1 week
This commit is contained in:
brueffer 2015-06-29 14:41:19 +00:00
parent 56f61c7a15
commit 03dfbcb63e

View File

@ -9,11 +9,11 @@
# has multiple ssh-agent(1) processes running, this will very likely # has multiple ssh-agent(1) processes running, this will very likely
# set SSH_AUTH_SOCK to point to the wrong file/domain socket. # set SSH_AUTH_SOCK to point to the wrong file/domain socket.
if (${?SSH_AUTH_SOCK} != "1") then if (${?SSH_AUTH_SOCK} != "1") then
setenv SSH_AUTH_SOCK `sockstat -u | awk '/^${USER}.+ ssh-agent/ { print $6 }' setenv SSH_AUTH_SOCK `sockstat -u | awk '/^${USER}.+ ssh-agent/ { print $6 }'`
endif endif
# Change only root's prompt # Change only root's prompt
if (`id -g` == 0) if (`id -g` == 0) then
set prompt="root@%m# " set prompt="root@%m# "
endif endif
@ -70,7 +70,7 @@ complete grep 'c/-*A/x:<#_lines_after>/' \
'n/-*f/f/' \ 'n/-*f/f/' \
'n/*/f/' 'n/*/f/'
complete ifconfig 'p@1@`ifconfig -l`@' \ complete ifconfig 'p@1@`ifconfig -l`@' \
'n/*/(range phase link netmask mtu vlandev vlan metric mediaopt down delete broadcast arp debug)/' 'n/*/(range phase link netmask mtu vlandev vlan metric mediaopt down delete broadcast arp debug)/' \
'c/%/j/' \ 'c/%/j/' \
'n/*/`ps -ax | awk '"'"'{print $1}'"'"'`/' 'n/*/`ps -ax | awk '"'"'{print $1}'"'"'`/'
complete kill 'c/-/S/' 'c/%/j/' 'n/*/`ps -ax | awk '"'"'{print $1}'"'"'`/' complete kill 'c/-/S/' 'c/%/j/' 'n/*/`ps -ax | awk '"'"'{print $1}'"'"'`/'