Skip to content

Instantly share code, notes, and snippets.

@subhodi
Created Feb 19, 2019
Embed
What would you like to do?
Shorten-the-current-directory-path-shown-on-terminal
if [ "$color_prompt" = yes ]; then
# PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\W\[\033[00m\]\$ '
else
# PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
PS1='\u@\h: \W:\$'
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment