Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
linux prompt customization

hide path

#1
export PS1="\u >"

#2
export PS1="\u :"

change name

#1
export PS1="john_doe : "

change name keepping color and path

#1
export PS1="\[\e]0;$(print_title)\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]jrichardsz:\[\033[01;34m\]\w\[\033[00m\]\$ "


#2
export PS1="\[\e]0;\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]jrichardsz:\[\033[01;34m\]\w\[\033[00m\]\$ "

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