blob: c354849e295562c656c5019dea330ae060a33b1b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
# complete my little rc function (archlinux startscripts)
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/; s/|/ /g');;
esac
}
compdef _rc rc
# easier way to use sshfs ;)
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
|