1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-12-22 08:08:00 +00:00

Add zstyle option to show pwd in long format

This commit is contained in:
Kyle Rich 2017-04-26 10:07:34 -06:00 committed by Kaleb Elwert
parent 850ad42c96
commit 7c509a264f
2 changed files with 5 additions and 0 deletions

View File

@ -9,6 +9,8 @@ local ret_directory
if [[ "$current_pwd" == (#m)[/~] ]]; then
ret_directory="$MATCH"
unset MATCH
elif zstyle -t ':prezto:module:prompt' long-pwd; then
ret_directory=${current_pwd}
else
ret_directory="${${${${(@j:/:M)${(@s:/:)current_pwd}##.#?}:h}%/}//\%/%%}/${${current_pwd:t}//\%/%%}"
fi

View File

@ -97,6 +97,9 @@ zstyle ':prezto:module:editor' key-bindings 'emacs'
# Auto set to 'off' on dumb terminals.
zstyle ':prezto:module:prompt' theme 'sorin'
# Display pwd in long format for themes that use promptpwd function
# zstyle ':prezto:module:prompt' long-pwd 'yes'
#
# Ruby
#