zsh: adjust functions
This commit is contained in:
parent
b93bcbba4e
commit
452db4a7d1
1 changed files with 5 additions and 7 deletions
|
@ -40,9 +40,7 @@ fixterm() { printf $'c' }
|
||||||
diff() { command diff --color $@ }
|
diff() { command diff --color $@ }
|
||||||
tailf() { command less +F $@ }
|
tailf() { command less +F $@ }
|
||||||
grep() { command grep --color=auto }
|
grep() { command grep --color=auto }
|
||||||
rgrep() { grep --color=auto --exclude-dir=\.git -R $@ }
|
rgrep() { grep --exclude-dir=.git -R $@ }
|
||||||
fwcmd() { command firewall-cmd $@ }
|
|
||||||
sush() { command sudo -Es }
|
|
||||||
s() { termcompat ssh $@ }
|
s() { termcompat ssh $@ }
|
||||||
|
|
||||||
if testbin nvim; then
|
if testbin nvim; then
|
||||||
|
@ -55,15 +53,15 @@ atmux() { tmux attach || tmux }
|
||||||
|
|
||||||
g() { command lazygit $@ }
|
g() { command lazygit $@ }
|
||||||
tig() { termcompat tig $@ }
|
tig() { termcompat tig $@ }
|
||||||
gsi() { tig status }
|
gsi() { termcompat tig status }
|
||||||
gci() { command git commit $@ }
|
gci() { command git commit $@ }
|
||||||
gsl() { command git stash list $@ }
|
gsl() { command git stash list $@ }
|
||||||
gss() { command git status -sbu $@ }
|
gss() { command git status -sbu $@ }
|
||||||
gsw() { command git switch $@ }
|
gsw() { command git switch $@ }
|
||||||
gup() { command git pull $@ }
|
gup() { command git pull $@ }
|
||||||
gwt() { command git worktree $@ }
|
gwta() { command git worktree add $@ }
|
||||||
groot() { cd $(command git rev-parse --show-toplevel) || return 1 }
|
gwtp() { command git worktree prune $@ }
|
||||||
ggrep() { command git grep $@ }
|
groot() { cd $(command git rev-parse --show-toplevel) || return 0 }
|
||||||
gdiff() { command git diff --color $@; }
|
gdiff() { command git diff --color $@; }
|
||||||
greset() {
|
greset() {
|
||||||
echo "OK to reset and clean teh repo?"
|
echo "OK to reset and clean teh repo?"
|
||||||
|
|
Loading…
Reference in a new issue