Guest User

PS1

a guest
Sep 8th, 2020
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.27 KB | None | 0 0
  1. ## My PS1, requires Hack Nerd Font
  2. ps1_suffix () {
  3.     if [[ -d ".git" ]]; then
  4.         echo -e "\e[0;43m\e[0;33m\e[0;43m\e[1;30m \e[0;33m "
  5.     else
  6.         echo -e ""
  7.     fi 
  8. }
  9.  
  10. PS1='\n\[\e[0;42m\e[0;32m\]\[\e[0;42m\e[1;30m\]\w\[\e[0;32m\]\[\e[0m\] $(ps1_suffix)\[\e[0m\]'
Advertisement
Add Comment
Please, Sign In to add comment