cleanup aliases and transfer to .gitconfig
This commit is contained in:
parent
06f1931df5
commit
18a7838459
2 changed files with 16 additions and 10 deletions
|
@ -14,12 +14,14 @@
|
||||||
unstage = reset HEAD --
|
unstage = reset HEAD --
|
||||||
visual = !gitk
|
visual = !gitk
|
||||||
tree = log --oneline --decorate --graph --all
|
tree = log --oneline --decorate --graph --all
|
||||||
|
treedate = log --oneline --decorate --graph --all --date-order --date=format:'%Y-%m-%d %H:%M:%S' --pretty=format:'%C(cyan)%h%Creset %C(black bold)%ad%Creset%C(auto)%d %s'
|
||||||
treefull = log --graph --all
|
treefull = log --graph --all
|
||||||
hist = log --pretty=format:'%h %ad | %s%d [%an : %cn]' --graph --date=short
|
hist = log --pretty=format:'%h %ad | %s%d [%an : %cn]' --graph --date=short
|
||||||
fixcached = rm -r --cached .
|
fixcached = rm -r --cached .
|
||||||
delete-last-commit = reset --soft HEAD~1
|
delete-last-commit = reset --soft HEAD~1
|
||||||
purge-last-commit = reset --hard HEAD~1
|
purge-last-commit = reset --hard HEAD~1
|
||||||
pushdetachedhead = push origin HEAD:master
|
pushdetachedhead = push origin HEAD:master
|
||||||
|
getbranchauthor = "!f() { git for-each-ref --format='%(committerdate) %09 %(authorname) %09 %(refname)' | sort -k5n -k2M -k3n -k4n; }; f"
|
||||||
[merge]
|
[merge]
|
||||||
conflictstyle = diff3
|
conflictstyle = diff3
|
||||||
tool = vimdiff
|
tool = vimdiff
|
||||||
|
|
24
aliases
24
aliases
|
@ -80,6 +80,10 @@ alias md='mkdir -p'
|
||||||
alias rd=rmdir
|
alias rd=rmdir
|
||||||
alias rmbrokenlinks='for f in $(find -L . -maxdepth 1 -type l); do unlink "$f";done'
|
alias rmbrokenlinks='for f in $(find -L . -maxdepth 1 -type l); do unlink "$f";done'
|
||||||
|
|
||||||
|
# mount/unmount
|
||||||
|
alias m=mount
|
||||||
|
alias u=umount
|
||||||
|
|
||||||
# tests
|
# tests
|
||||||
alias testmail='echo testemail von ${USER}@${HOSTNAME} am $(date)|mail -s "TESTEMAIL ${USER}@${HOSTNAME} $(date)"'
|
alias testmail='echo testemail von ${USER}@${HOSTNAME} am $(date)|mail -s "TESTEMAIL ${USER}@${HOSTNAME} $(date)"'
|
||||||
|
|
||||||
|
@ -106,14 +110,6 @@ alias vi='/usr/bin/vim'
|
||||||
alias vlc='VDPAU_DRIVER=va_gl vlc'
|
alias vlc='VDPAU_DRIVER=va_gl vlc'
|
||||||
alias tmux='tmux -f ~/.tmux.conf'
|
alias tmux='tmux -f ~/.tmux.conf'
|
||||||
|
|
||||||
# mount/unmount
|
|
||||||
alias me='owndisk mount'
|
|
||||||
alias m=mount
|
|
||||||
#alias mxxx='encfs ~/.x ~/X && xdg-open ~/X'
|
|
||||||
alias ue='owndisk umount'
|
|
||||||
#alias umxx='fusermount -u ~/X'
|
|
||||||
alias u=umount
|
|
||||||
|
|
||||||
# rock64
|
# rock64
|
||||||
alias rock64='sudo minicom -D /dev/ttyUSB0 --color=on'
|
alias rock64='sudo minicom -D /dev/ttyUSB0 --color=on'
|
||||||
alias rock64='sudo minicom -D /dev/ttyUSB0 -b 1500000--color=on'
|
alias rock64='sudo minicom -D /dev/ttyUSB0 -b 1500000--color=on'
|
||||||
|
@ -146,12 +142,20 @@ alias ssc='[ $(id -u) -ne 0 ] && { S=sudo; } || { S="" ; } ; $S systemctl'
|
||||||
alias sda='[ $(id -u) -ne 0 ] && { S=sudo; } || { S="" ; } ; $S systemd-analyze plot > /tmp/bootchart.svg && eog /tmp/bootchart.svg&'
|
alias sda='[ $(id -u) -ne 0 ] && { S=sudo; } || { S="" ; } ; $S systemd-analyze plot > /tmp/bootchart.svg && eog /tmp/bootchart.svg&'
|
||||||
|
|
||||||
# remote control
|
# remote control
|
||||||
alias virgooff='ssh virgo sudo systemctl poweroff'
|
# tinakisti
|
||||||
alias virgoreboot='ssh virgo sudo systemctl reboot'
|
alias tinakistioff='ssh tinakisti sudo systemctl poweroff'
|
||||||
|
alias tinakistisuspend='ssh tinakisti sudo systemctl suspend'
|
||||||
|
alias tinakistireboot='ssh tinakisti sudo systemctl reboot'
|
||||||
|
|
||||||
|
# aldebaran
|
||||||
alias aldebaranoff='ssh aldebaran sudo systemctl poweroff'
|
alias aldebaranoff='ssh aldebaran sudo systemctl poweroff'
|
||||||
alias aldebaransuspend='ssh aldebaran sudo systemctl suspend'
|
alias aldebaransuspend='ssh aldebaran sudo systemctl suspend'
|
||||||
alias aldebaranreboot='ssh aldebaran sudo systemctl reboot'
|
alias aldebaranreboot='ssh aldebaran sudo systemctl reboot'
|
||||||
|
|
||||||
|
## hostname
|
||||||
|
#alias hostnameoff='ssh hostname sudo systemctl poweroff'
|
||||||
|
#alias hostnamesuspend='ssh hostname sudo systemctl suspend'
|
||||||
|
#alias hostnamereboot='ssh hostname sudo systemctl reboot'
|
||||||
|
|
||||||
# nextcloud
|
# nextcloud
|
||||||
alias nextcloud-add-missing-indices='docker exec -ti nc_app_1 php occ db:add-missing-indices'
|
alias nextcloud-add-missing-indices='docker exec -ti nc_app_1 php occ db:add-missing-indices'
|
||||||
|
|
Loading…
Reference in a new issue