zsh: git branchless completion
This commit is contained in:
parent
471ee13bf5
commit
8050aa5304
1 changed files with 6 additions and 0 deletions
6
.zshrc
6
.zshrc
|
@ -119,6 +119,7 @@ export BAT_PAGER="less -r"
|
||||||
alias c='cut -c-${COLUMNS}'
|
alias c='cut -c-${COLUMNS}'
|
||||||
alias e='tmux-edit-helper'
|
alias e='tmux-edit-helper'
|
||||||
alias dotgit='git --work-tree $HOME --git-dir $HOME/.dot_git'
|
alias dotgit='git --work-tree $HOME --git-dir $HOME/.dot_git'
|
||||||
|
alias git='git-branchless wrap --'
|
||||||
alias l='bat --wrap=never --pager="less -S"'
|
alias l='bat --wrap=never --pager="less -S"'
|
||||||
alias ls=exa
|
alias ls=exa
|
||||||
alias tail='tail -n $LINES'
|
alias tail='tail -n $LINES'
|
||||||
|
@ -236,6 +237,11 @@ alias kubectl='grc kubectl'
|
||||||
# curl -sLo "${fpath[1]}/_bazel" https://raw.githubusercontent.com/bazelbuild/bazel/master/scripts/zsh_completion/_bazel
|
# curl -sLo "${fpath[1]}/_bazel" https://raw.githubusercontent.com/bazelbuild/bazel/master/scripts/zsh_completion/_bazel
|
||||||
#fi
|
#fi
|
||||||
|
|
||||||
|
## git-branchless
|
||||||
|
if [ ! -f "${fpath[1]}/_git_branchless" ]; then
|
||||||
|
curl -sLo "${fpath[1]}/_git_branchless" https://gist.githubusercontent.com/minijackson/68effb0e6c7d8333e20f07da20076c28/raw/5469ffa1c6adc245adb82316f1013937c5148da7/_git-branchless
|
||||||
|
fi
|
||||||
|
|
||||||
## sapling
|
## sapling
|
||||||
if [ ! -f "${fpath[1]}/_sl" ]; then
|
if [ ! -f "${fpath[1]}/_sl" ]; then
|
||||||
# See: https://github.com/facebook/sapling/pull/369
|
# See: https://github.com/facebook/sapling/pull/369
|
||||||
|
|
Loading…
Reference in a new issue