Created
March 1, 2017 23:11
-
-
Save petehalverson/89c5127de5944c46920b65567a0e013d to your computer and use it in GitHub Desktop.
www
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# add to .bashrc, .bash_profile, ~/.profile | |
www() { | |
cd ~/www/"$@" | |
} | |
_www() { | |
local cur="${COMP_WORDS[COMP_CWORD]}" | |
COMPREPLY=( $(compgen -W "$(ls ~/www)" -- $cur) ) | |
} | |
complete -o default -F _www www |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment