Skip to content

Instantly share code, notes, and snippets.

@zeroeth
Created April 3, 2014 16:22
Show Gist options
  • Select an option

  • Save zeroeth/9957660 to your computer and use it in GitHub Desktop.

Select an option

Save zeroeth/9957660 to your computer and use it in GitHub Desktop.
bash project folder fun
alias ll='ls -al | grep -r "\->"'
projects() {
if [[ $# -eq 0 ]]; then
FILES=$(ls -t1 ~/Projects/ | head -10)
printf "Projects:\n"
select d in $FILES; do test -n "$d" && break; echo ">>> Invalid Selection"; done
cd ~/Projects/$d && pwd
else
cd ~/Projects/$1
fi
}
alias p=projects
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment