Skip to content

Instantly share code, notes, and snippets.

@DevER-M
Last active March 30, 2022 15:17
Show Gist options
  • Save DevER-M/218a766061c233038a2231384c8761ed to your computer and use it in GitHub Desktop.
Save DevER-M/218a766061c233038a2231384c8761ed to your computer and use it in GitHub Desktop.
PS1 and prompt for bash and zsh

Kali linux PS1

PS1='\[\e]0;\u@\h: \w\a\]\[\e[0;94m\]┌──\[\e[0;94m\](\[\e[0;91m\]\u\[\e[0;94m\]@\[\e[0;91m\]\h\[\e[0;94m\])\[\e[0;94m\]-\[\e[0;94m\][\[\e[0;1;92m\]\w\[\e[0;94m\]]\n\[\e[0;94m\]└─\[\e[0;91m\]# \[\e[0m\]'

image

Custom PS1 - 1

PS1='\[\e[0;91m\][\[\e[0;38;5;202m\]\u\[\e[0m\]@\[\e[0;96m\]\h \[\e[0;1m\]\w\[\e[0;91m\]]\[\e[0;91m\]# \[\e[0m\]'

image

Kali linux prompt

%F{blue}┌──(%f%F{red}%n%f%F{blue}@%f%F{red}%m%f%F{blue})-[%f%F{green}%~%f%F{blue}]%f%F{blue}
└─#%f 

image

More comming soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment