diff options
| author | Hsieh Chin Fan <pham@topo.tw> | 2023-04-05 00:39:34 +0800 |
|---|---|---|
| committer | Hsieh Chin Fan <pham@topo.tw> | 2023-04-05 00:39:34 +0800 |
| commit | 4234b1034630f0c8714ac7201b98bf70cdd5f625 (patch) | |
| tree | 443951523a682dd88295ca57de0560593ffd16aa | |
| parent | 9fe68c97f07496f35b645b62f6d443b4ebd4b5e4 (diff) | |
Update
| -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 | ||