|
|
@ -443,7 +443,13 @@ prompt_context() {
|
|
|
|
|
|
|
|
|
|
|
|
# Dir: current working directory
|
|
|
|
# Dir: current working directory
|
|
|
|
prompt_dir() {
|
|
|
|
prompt_dir() {
|
|
|
|
$1_prompt_segment "$0" "blue" "$DEFAULT_COLOR" '%~'
|
|
|
|
local current_path='%~'
|
|
|
|
|
|
|
|
if [[ -n "$POWERLEVEL9K_SHORTEN_DIR_LENGTH" ]]; then
|
|
|
|
|
|
|
|
# shorten path to $POWERLEVEL9K_SHORTEN_DIR_LENGTH
|
|
|
|
|
|
|
|
current_path="%$((POWERLEVEL9K_SHORTEN_DIR_LENGTH+1))(c:.../:)%${POWERLEVEL9K_SHORTEN_DIR_LENGTH}c"
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$1_prompt_segment "$0" "blue" "$DEFAULT_COLOR" "$current_path"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
# Command number (in local history)
|
|
|
|
# Command number (in local history)
|
|
|
|