Add misc gitconfig/zsh fixes
This commit is contained in:
parent
3477f92973
commit
ff65ec54dd
@ -15,7 +15,7 @@
|
|||||||
st = status
|
st = status
|
||||||
br = branch -av
|
br = branch -av
|
||||||
hist = log --all --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%ci) %C(bold blue)<%an>%Creset' --abbrev-commit
|
hist = log --all --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%ci) %C(bold blue)<%an>%Creset' --abbrev-commit
|
||||||
d = difftool
|
dt = difftool
|
||||||
cbranch = !sh -c 'git commit -m \"$2\"&&git branch $1&&git reset --hard HEAD~1&&git co \"$1\"' -
|
cbranch = !sh -c 'git commit -m \"$2\"&&git branch $1&&git reset --hard HEAD~1&&git co \"$1\"' -
|
||||||
nbranch = !sh -c 'git branch $1&&git reset --hard HEAD~1&&git co \"$1\"' -
|
nbranch = !sh -c 'git branch $1&&git reset --hard HEAD~1&&git co \"$1\"' -
|
||||||
size = "!git diff --cached --binary | wc -c | numfmt --to=iec-i"
|
size = "!git diff --cached --binary | wc -c | numfmt --to=iec-i"
|
||||||
@ -26,6 +26,8 @@
|
|||||||
noignore = update-index --no-assume-unchanged
|
noignore = update-index --no-assume-unchanged
|
||||||
rename-branch = branch -m
|
rename-branch = branch -m
|
||||||
find-file = "!for branch in $(git for-each-ref --format=\"%(refname)\" refs/heads); do if git ls-tree -r --name-only $branch | grep \"$1\" > /dev/null; then echo \"${branch}:\"; git ls-tree -r --name-only $branch | nl -bn -w3 | grep \"$1\"; fi; done; :"
|
find-file = "!for branch in $(git for-each-ref --format=\"%(refname)\" refs/heads); do if git ls-tree -r --name-only $branch | grep \"$1\" > /dev/null; then echo \"${branch}:\"; git ls-tree -r --name-only $branch | nl -bn -w3 | grep \"$1\"; fi; done; :"
|
||||||
|
# n => no pager
|
||||||
|
ndiff = !git --no-pager diff
|
||||||
[push]
|
[push]
|
||||||
default = matching
|
default = matching
|
||||||
[core]
|
[core]
|
||||||
|
@ -98,7 +98,7 @@ ex eix && alias eix="eix -F"
|
|||||||
ex tmux && alias tmux='tmux -2'
|
ex tmux && alias tmux='tmux -2'
|
||||||
ex tree && alias tree='tree -C'
|
ex tree && alias tree='tree -C'
|
||||||
ex ocp && alias ocp="ocp -vs0 -dcurses"
|
ex ocp && alias ocp="ocp -vs0 -dcurses"
|
||||||
alias jupyter='docker run --rm --user="$(id -u):$(id -g)" -v "$PWD":/home/jovyan/work -p 8888:8888 ymatsunaga/octave'
|
alias jupyter='docker run --rm --user="$(id -u):$(id -g)" -v "$PWD":/home/jovyan/work -p 8888:8888 ymatsunaga/octave jupyter notebook --ip 0.0.0.0'
|
||||||
alias con='git x php bin/console'
|
alias con='git x php bin/console'
|
||||||
alias disphost='export DISPLAY=:0.0'
|
alias disphost='export DISPLAY=:0.0'
|
||||||
alias l='ls -CF'
|
alias l='ls -CF'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user