Fix mark prefix
Now the prompt mark can be at the beginning of a new line without a space before it. Conflicts: liquidprompt
This commit is contained in:
parent
7e7734e624
commit
98cbca4786
@ -43,7 +43,7 @@ fi
|
||||
LP_MARK_BRACKET_OPEN="[" # open bracket
|
||||
LP_MARK_BRACKET_CLOSE="]" # close bracket
|
||||
#LP_MARK_DEFAULT="" # default prompt mark
|
||||
LP_MARK_PREFIX="" # prompt mark prefix
|
||||
LP_MARK_PREFIX=" " # prompt mark prefix
|
||||
LP_PS1_PREFIX=""
|
||||
LP_PS1_POSTFIX=""
|
||||
|
||||
|
@ -313,7 +313,7 @@ _lp_source_config()
|
||||
LP_MARK_BRACKET_OPEN="${LP_MARK_BRACKET_OPEN:-"["}"
|
||||
LP_MARK_BRACKET_CLOSE="${LP_MARK_BRACKET_CLOSE:-"]"}"
|
||||
LP_MARK_SHORTEN_PATH="${LP_MARK_SHORTEN_PATH:-" … "}"
|
||||
# LP_MARK_PREFIX="$LP_MARK_PREFIX"
|
||||
LP_MARK_PREFIX="${LP_MARK_PREFIX:-" "}"
|
||||
|
||||
LP_COLOR_PATH=${LP_COLOR_PATH:-$BOLD}
|
||||
LP_COLOR_PATH_ROOT=${LP_COLOR_PATH_ROOT:-$BOLD_YELLOW}
|
||||
@ -1653,7 +1653,7 @@ _lp_set_prompt()
|
||||
fi
|
||||
|
||||
# end of the prompt line: double spaces
|
||||
LP_MARK="$(_lp_sb "$(_lp_smart_mark $LP_VCS_TYPE)")"
|
||||
LP_MARK="$(_lp_sr "$(_lp_smart_mark $LP_VCS_TYPE)")"
|
||||
|
||||
# The color is different if user is root
|
||||
LP_PWD="${LP_COLOR_PATH}${LP_PWD}${NO_COL}"
|
||||
|
@ -5,8 +5,8 @@
|
||||
|
||||
# If you want to use different themes and features,
|
||||
# you can load the corresponding files here:
|
||||
#source ~/code/liquidprompt/nojhan.theme
|
||||
#LP_PS1_FILE="~/code/liquidprompt/nojhan.ps1"
|
||||
#source ~/.config/liquidprompt/nojhan.theme
|
||||
#LP_PS1_FILE="~/.config/liquidprompt/nojhan.ps1"
|
||||
|
||||
#############
|
||||
# BEHAVIOUR #
|
||||
|
Loading…
x
Reference in New Issue
Block a user