mirror of
https://github.com/ohmybash/oh-my-bash.git
synced 2024-05-11 05:55:37 +00:00
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:
committed by
Koichi Murase
parent
02df6627ae
commit
bea5dc9406
@@ -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
|
||||
|
Reference in New Issue
Block a user