Skip to content

Instantly share code, notes, and snippets.

@weshouman
Last active October 28, 2017 06:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save weshouman/11282543 to your computer and use it in GitHub Desktop.
Save weshouman/11282543 to your computer and use it in GitHub Desktop.
#bash
#(Function credit: usenet archive)
#add me to ~/.bashrc or ~/.bash_profile
#then anywhere in the shell u could write $ path to get the path in a nice format
function path(){
old=$IFS
IFS=:
printf "%s\n" $PATH
IFS=$old
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment