Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Programster Injection
- # Here we can choose the mode for displaying the current path in bash terminal.
- # 1 = normal path shown
- # 2 = only current directory
- # 3 = no path at all.
- DISPLAY_OPTION=3
- if [ "$DISPLAY_OPTION" = 1 ]; then
- PATH_VAR="\w"
- elif [ "$DISPLAY_OPTION" = 2 ]; then
- PATH_VAR="\W"
- elif [ "$DISPLAY_OPTION" = 3 ]; then
- PATH_VAR=""
- fi
- if [ "$color_prompt" = yes ]; then
- PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]'$PATH_VAR'\[\033[00m\]\$ '
- else
- PS1='${debian_chroot:+($debian_chroot)}\u@\h:'$PATH_VAR'\$ '
- fi
- unset color_prompt force_color_prompt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement