Skip to content

Instantly share code, notes, and snippets.

@gitryder
Created July 27, 2021 14:58
Show Gist options
  • Save gitryder/baf1cae69655ee41c6e642356ea4cb7f to your computer and use it in GitHub Desktop.
Save gitryder/baf1cae69655ee41c6e642356ea4cb7f to your computer and use it in GitHub Desktop.
dan's bash prompt
# Go to the user's home dir
cd ~/
# Make a backup of the user's current .bashrc
cp .bashrc .bashrc.bak
# Add the PS1 variable to the user's .bashrc
echo "PS1='\[\e[33m\]\u\e[00m\[\e[32m\] at \e[00m\[\e[34m\]\h\e[00m \[\e[31m\]in\e[0 0m \w \[\e[35m\]$(__git_ps1 "(%s)")\e[00m \n🏔️-> '" >> .bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment