Skip to content

Commit 3d2c6d2

Browse files
committed
Merge branch 'develop' of https://github.com/agkozak/agkozak-zsh-prompt into develop
2 parents e6eb266 + 6f95627 commit 3d2c6d2

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,12 @@ If you would like to display a different number of directory elements, set the e
122122

123123
![AGKOZAK_PROMPT_DIRTRIM](img/AGKOZAK_PROMPT_DIRTRIM.png)
124124

125-
By default, [static named directories created with `hash -d`](http://zsh.sourceforge.net/Doc/Release/Expansion.html#Static-named-directories) will be displayed in the prompt just like any others. If you use them extensively, though, you may opt to set `AGKOZAK_NAMED_DIRS=1`. The prompt will then use the named directories as base directories for its path. For example, if you execute
125+
By default, [static named directories created with `hash -d`](http://zsh.sourceforge.net/Doc/Release/Expansion.html#Static-named-directories) will be used as base directories in the path the prompt displays. For example,
126+
if you have executed
126127

127128
hash -d wp-content=/var/www/html/wp-content
128129

129-
then `/var/www/html/wp-content` will appear in the prompt as `~wp-content`, and `/var/www/html/wp-content/plugins/redirection/actions` will be represented as `~wp-content/.../redirection/actions`.
130+
then `/var/www/html/wp-content` will appear in the prompt as `wp-content`, and `/var/www/html/wp-content/plugins/redirection/actions` will be represented as `~wp-content/.../redirection/actions`. If you prefer to have named directories displayed just like any others, set `AGKOZAK_NAMED_DIRS=0`.
130131

131132
## Git Branch and Status
132133

agkozak-zsh-prompt.plugin.zsh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,9 @@ _agkozak_is_ssh() {
129129
#
130130
# ~/.../polyglot/img
131131
#
132-
# If AGKOZAK_NAMED_DIRS is set to 1, ZSH named directories
133-
# will be displayed using their aliases in the prompt.
132+
# Named directories will by default be displayed using their
133+
# aliases in the prompt. Set AGKOZAK_NAMED_DIRS=0 to have
134+
# them displayed just like any other directory.
134135
#
135136
# Arguments:
136137
# $1 Number of directory elements to display (default: 2)

0 commit comments

Comments
 (0)