Skip to content

Instantly share code, notes, and snippets.

@jrichardsz
Last active August 6, 2022 21:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jrichardsz/08d3e14121ddf0584088d3e75c5e4bfe to your computer and use it in GitHub Desktop.
Save jrichardsz/08d3e14121ddf0584088d3e75c5e4bfe to your computer and use it in GitHub Desktop.
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

v1

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

jrichardsz

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

console

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

more samples

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