projects
/
zsh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
move the jj_chpwd addition out of the function file into the environment file
[zsh.git]
/
.zsh
/
10_Environment.zsh
diff --git
a/.zsh/10_Environment.zsh
b/.zsh/10_Environment.zsh
index
3939b41
..
87599a1
100644
(file)
--- a/
.zsh/10_Environment.zsh
+++ b/
.zsh/10_Environment.zsh
@@
-2,6
+2,15
@@
export SHELL=$(which zsh)
+# Show some git info on cd
+if is434 ; then
+ add-zsh-hook chpwd _jj_chpwd
+else
+ function chpwd() {
+ _jj_chpwd
+ }
+fi
+
if [ -w $ZDOTDIR ]; then
mkdir -p ${ZDOTDIR}/var
HISTFILE=$ZDOTDIR/var/history.$USER.$HOST