mirror of
https://github.com/dcarrillo/prezto.git
synced 2025-07-01 03:29:26 +00:00
Add zstyle option to show pwd in long format
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user