Last active
October 14, 2017 12:50
-
-
Save rahuldeo2047/3815b9958ab3cc7c7d7e47b2266f9bc9 to your computer and use it in GitHub Desktop.
ubuntu short form dir name prompt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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