lib, themes: Preserve users' PROMPT_DIRTRIM

These changes in "themes/{agnoster,roderik,vscode}.sh" and "lib/shopt.sh" will
allow a user to set the PROMPT_DIRTRIM variable in their .bashrc and change the
prompt path length.

Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
This commit is contained in:
David Dreggors
2020-06-11 09:31:37 -04:00
committed by Koichi Murase
parent 02df6627ae
commit bea5dc9406
4 changed files with 4 additions and 4 deletions

View File

@@ -12,7 +12,7 @@ set -o noclobber
shopt -s checkwinsize
# Automatically trim long paths in the prompt (requires Bash 4.x)
PROMPT_DIRTRIM=2
PROMPT_DIRTRIM=${PROMPT_DIRTRIM:-2}
# Enable history expansion with space
# E.g. typing !!<space> will replace the !! with your last command