Skip to content

Instantly share code, notes, and snippets.

@kbfreder
Created June 21, 2022 21:46
Show Gist options
  • Save kbfreder/0d4000f471b47026f8ad935d089c74d2 to your computer and use it in GitHub Desktop.
Save kbfreder/0d4000f471b47026f8ad935d089c74d2 to your computer and use it in GitHub Desktop.
misc .bash_profile
# to change the username displayed at the bash prompt
PS1="kendra@\W $ "
# functions
function path(){ # nicely list all dir in path
old=$IFS # rather than separated by ':', listed 1 per line
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