diff options
Diffstat (limited to '.zsh/rc/70completion')
-rw-r--r-- | .zsh/rc/70completion/10own_functions | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.zsh/rc/70completion/10own_functions b/.zsh/rc/70completion/10own_functions index 2be4e67..c354849 100644 --- a/.zsh/rc/70completion/10own_functions +++ b/.zsh/rc/70completion/10own_functions @@ -2,7 +2,7 @@ function _rc () { case $CURRENT in 2) compadd $(find /etc/rc.d/ -maxdepth 1 -type f -executable -printf '%f ');; - 3) compadd $(/etc/rc.d/$words[2] 2> /dev/null | grep -i usage | sed 's/.*{\(.*\)}/\1/' | sed 's/|/ /g');; + 3) compadd $(/etc/rc.d/$words[2] 2> /dev/null | grep -i usage | sed 's/.*{\(.*\)}/\1/; s/|/ /g');; esac } compdef _rc rc @@ -11,4 +11,4 @@ compdef _rc rc function _ssh-mount () { compadd $(cat ${HOME}/bin/ssh-mount.sh | egrep "Servers:.*" | sed "s#echo \-e \"\${green}Servers\:\$NC##g; s#\"\;##g; s#,##g") } -compdef _ssh-mount ssh-mount.sh
\ No newline at end of file +compdef _ssh-mount ssh-mount.sh |