Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
linux prompt customization

hide path

export PS1="\u >"

export PS1="\u :"

change name

export PS1="john_doe : "

change name keepping color and path

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

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