Skip to content

Instantly share code, notes, and snippets.

@rahuldeo2047
Last active October 14, 2017 12:50
Show Gist options
  • Save rahuldeo2047/3815b9958ab3cc7c7d7e47b2266f9bc9 to your computer and use it in GitHub Desktop.
Save rahuldeo2047/3815b9958ab3cc7c7d7e47b2266f9bc9 to your computer and use it in GitHub Desktop.
ubuntu short form dir name prompt
if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
#https://askubuntu.com/questions/145618/how-can-i-shorten-my-command-line-bash-prompt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment