Skip to content

Instantly share code, notes, and snippets.

@nbfritz
Last active December 27, 2015 00:09
Show Gist options
  • Select an option

  • Save nbfritz/7235218 to your computer and use it in GitHub Desktop.

Select an option

Save nbfritz/7235218 to your computer and use it in GitHub Desktop.
Simple go-tool clone for pure bash. Great for when I want easy directory jump capabilities without wanting to install python.
# put the following function into .bash_profile or .bashrc to evaluate this file
# function go { `awk -v val=^$1$ '$1!~/^[:space:]*#/ && $1~val { print "cd "$2 }' ~/.go_shortcuts`; }
sample /some/deep/directory/to/link/to
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment