Clean up zsh aliases and add git aliases to gitconfig
This commit is contained in:
parent
b809746777
commit
52a282fdb6
2 changed files with 22 additions and 6 deletions
18
gitconfig
18
gitconfig
|
@ -9,3 +9,21 @@
|
|||
ui = auto
|
||||
[push]
|
||||
default = current
|
||||
[alias]
|
||||
# Basics
|
||||
st = status -s
|
||||
cl = clone
|
||||
cm = commit -m
|
||||
cma = commit -am
|
||||
ck = checkout
|
||||
br = branch
|
||||
gr = grep -I
|
||||
|
||||
# Tweak defaults
|
||||
bra = branch -ra
|
||||
|
||||
# List aliases
|
||||
la = "!git config -l | grep alias | cut -c 7-"
|
||||
|
||||
# Pretty branch graph
|
||||
lg = log --oneline --abbrev-commit --all --graph --decorate --color
|
||||
|
|
10
zshrc
10
zshrc
|
@ -59,16 +59,14 @@ alias minecraft="java -jar $HOME/.minecraft/launcher.jar"
|
|||
|
||||
|
||||
# Easy dwm recompile on arch
|
||||
alias redwm='cd ~/abs/dwm; updpkgsums; makepkg -fi --noconfirm; killall dwm'
|
||||
alias redwm='cd ~/aur/dwm-git; updpkgsums; makepkg -fi --noconfirm; killall dwm'
|
||||
|
||||
|
||||
# Aliases
|
||||
alias acs='apt-cache search'
|
||||
alias ls='ls --classify --tabsize=0 --literal --color=auto --show-control-chars -h'
|
||||
alias ll='ls -lha'
|
||||
# alias la='ls -A'
|
||||
# alias lla='ls -la'
|
||||
# alias less='less --quiet'
|
||||
alias less='less --quiet'
|
||||
alias df='df --human-readable'
|
||||
alias du='du --human-readable'
|
||||
# alias mutt='mutt -y'
|
||||
|
@ -81,8 +79,8 @@ alias rm='rm -I'
|
|||
alias ipa='ip route && echo && ip address'
|
||||
alias ipr='ip address && echo && ip route'
|
||||
alias which='which -a'
|
||||
alias gg='git log --oneline --abbrev-commit --all --graph --decorate --color'
|
||||
# À tester un jour :)
|
||||
# Reference : man zshbuiltins
|
||||
# alias -s ps=gv
|
||||
# Le fameux cd ...etc
|
||||
alias -g ...='../..'
|
||||
|
@ -102,7 +100,7 @@ case $TERM in
|
|||
;;
|
||||
# Fix broken ssh with st
|
||||
st*)
|
||||
alias ssh='TERM=xterm ssh'
|
||||
alias ssh='TERM=xterm ssh -A'
|
||||
;;
|
||||
esac
|
||||
|
||||
|
|
Loading…
Reference in a new issue