Created
July 27, 2021 14:58
-
-
Save gitryder/baf1cae69655ee41c6e642356ea4cb7f to your computer and use it in GitHub Desktop.
dan's bash prompt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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