File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change 1
1
# geometry_path - show the current path
2
2
3
3
geometry_path() {
4
- local dir=${GEOMETRY_PATH_SYMBOL_HOME:-"%3 ~"} # symbol representing the home directory
4
+ local dir=${GEOMETRY_PATH_SYMBOL_HOME:-"%$GEOMETRY_PATH_TRUNCATE ~"} # symbol representing the home directory
5
5
( ${GEOMETRY_PATH_SHOW_BASENAME:-false} ) && dir=${PWD:t}
6
6
ansi ${GEOMETRY_PATH_COLOR:-blue} $dir
7
7
}
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ typeset -gA GEOMETRY; GEOMETRY[ROOT]=${0:A:h}
11
11
(( $+ GEOMETRY_INFO)) || GEOMETRY_INFO=()
12
12
(( $+ GEOMETRY_TITLE)) || GEOMETRY_TITLE=(geometry_path)
13
13
(( $+ GEOMETRY_CMDTITLE)) || GEOMETRY_CMDTITLE=(geometry_cmd geometry_hostname)
14
+ (( $+ GEOMETRY_PATH_TRUNCATE)) || GEOMETRY_PATH_TRUNCATE=3
14
15
15
16
autoload -U add-zsh-hook
16
17
You can’t perform that action at this time.
0 commit comments