diff options
-rw-r--r-- | tigrc | 4 | ||||
-rw-r--r-- | zsh/zshrc | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -85,7 +85,7 @@ bind main F none | |||
85 | bind generic <C-T> :toggle commit-title-refs | 85 | bind generic <C-T> :toggle commit-title-refs |
86 | 86 | ||
87 | # edit tigrc | 87 | # edit tigrc |
88 | bind main e >sh -c "vim ~/.tigrc" | 88 | bind main e >sh -c "$EDITOR ~/.tigrc" |
89 | 89 | ||
90 | # move | 90 | # move |
91 | bind main <C-J> :move-next-merge | 91 | bind 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 |
360 | bind help e >sh -c "vim ~/.tigrc" | 360 | bind help e >sh -c "$EDITOR ~/.tigrc" |
361 | 361 | ||
362 | #==================== | 362 | #==================== |
363 | # color | 363 | # color |
@@ -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 | ||