aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2023-04-05 00:39:34 +0800
committerHsieh Chin Fan <pham@topo.tw>2023-04-05 00:39:34 +0800
commit4234b1034630f0c8714ac7201b98bf70cdd5f625 (patch)
tree443951523a682dd88295ca57de0560593ffd16aa
parent9fe68c97f07496f35b645b62f6d443b4ebd4b5e4 (diff)
Update
-rw-r--r--tigrc4
-rw-r--r--zsh/zshrc2
2 files changed, 3 insertions, 3 deletions
diff --git a/tigrc b/tigrc
index 3b7c2c7..5d64450 100644
--- a/tigrc
+++ b/tigrc
@@ -85,7 +85,7 @@ bind main F none
85bind generic <C-T> :toggle commit-title-refs 85bind generic <C-T> :toggle commit-title-refs
86 86
87# edit tigrc 87# edit tigrc
88bind main e >sh -c "vim ~/.tigrc" 88bind main e >sh -c "$EDITOR ~/.tigrc"
89 89
90# move 90# move
91bind main <C-J> :move-next-merge 91bind main <C-J> :move-next-merge
@@ -357,7 +357,7 @@ bind diff u @git checkout %(commit)^ -- %(file)
357#==================== 357#====================
358 358
359# edit tigrc 359# edit tigrc
360bind help e >sh -c "vim ~/.tigrc" 360bind help e >sh -c "$EDITOR ~/.tigrc"
361 361
362#==================== 362#====================
363# color 363# color
diff --git a/zsh/zshrc b/zsh/zshrc
index 830ff57..5f8b29f 100644
--- a/zsh/zshrc
+++ b/zsh/zshrc
@@ -53,7 +53,7 @@ function precmd() {
53 PROMPT='%B%(?:%F{green}%m%f:%K{red}%F{black}%m%f%k)%f%F{cyan} %c%f%b ' 53 PROMPT='%B%(?:%F{green}%m%f:%K{red}%F{black}%m%f%k)%f%F{cyan} %c%f%b '
54 RIGHT=$(NUM=$($SETTING_DIR/bin/git/check-repos.sh -n); (( $NUM != 0 )) && echo $NUM) 54 RIGHT=$(NUM=$($SETTING_DIR/bin/git/check-repos.sh -n); (( $NUM != 0 )) && echo $NUM)
55 _get_context 55 _get_context
56 RPROMPT="%B%K{blue}%F{yellow} ${CONTEXT} %f%k%K{red}%F{black}${RIGHT}%f%k%b" 56 RPROMPT="%B%K{blue}%F{yellow}${CONTEXT:+ $CONTEXT }%f%k%K{red}%F{black}${RIGHT}%f%k%b"
57 [ -n "$PRE_POPULATE" ] && print -z "$PRE_POPULATE" 57 [ -n "$PRE_POPULATE" ] && print -z "$PRE_POPULATE"
58} 58}
59 59