diff options
| author | typebrook <typebrook@gmail.com> | 2019-12-01 13:42:22 +0800 |
|---|---|---|
| committer | typebrook <typebrook@gmail.com> | 2019-12-01 13:42:22 +0800 |
| commit | 33221b07ae2a49faedda57b165a1035bed0f1596 (patch) | |
| tree | e4446addd22e3b6380486df9d33f5a45d406b66e | |
| parent | 2379e355db521240243e47f2f6b56ce3bc921dd1 (diff) | |
update
| -rw-r--r-- | alias | 9 | ||||
| -rw-r--r-- | tigrc | 2 |
2 files changed, 5 insertions, 6 deletions
| @@ -80,11 +80,10 @@ _ranger-cd() { | |||
| 80 | alias df='df -h' | 80 | alias df='df -h' |
| 81 | 81 | ||
| 82 | # git | 82 | # git |
| 83 | alias gc='git clone' | 83 | alias gc > /dev/null && unalias gc |
| 84 | alias gc1='git clone --depth=1' | 84 | gc() { git clone $1 && cd $(basename $1) } |
| 85 | gcg() { | 85 | gc1() { git clone --depth=1 $1 && cd $(basename $1) } |
| 86 | git clone git@github.com:$1/$2.git | 86 | gcg() { git clone git@github.com:$1/$2.git && cd $(basename $1) } |
| 87 | } | ||
| 88 | alias gls='git log -S' | 87 | alias gls='git log -S' |
| 89 | alias cdgs='cd $(git submodule status | sed "s/^.//" | cut -d" " -f2)' # cd to first submodule | 88 | alias cdgs='cd $(git submodule status | sed "s/^.//" | cut -d" " -f2)' # cd to first submodule |
| 90 | 89 | ||
| @@ -229,7 +229,7 @@ bind status c @git commit -m "%(prompt Enter commit message: )" | |||
| 229 | bind status a !>git commit --amend | 229 | bind status a !>git commit --amend |
| 230 | bind status p ?>sh -c "git commit -m 'update' && git push" # quick push | 230 | bind status p ?>sh -c "git commit -m 'update' && git push" # quick push |
| 231 | bind status d ?>rm %(file) | 231 | bind status d ?>rm %(file) |
| 232 | bind status D ?>git clean -df | 232 | bind status D ?>git clean -dfx |
| 233 | 233 | ||
| 234 | # solve conflict | 234 | # solve conflict |
| 235 | bind status U ?>git reset --hard | 235 | bind status U ?>git reset --hard |