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 --
|
||||
visual = !gitk
|
||||
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
|
||||
hist = log --pretty=format:'%h %ad | %s%d [%an : %cn]' --graph --date=short
|
||||
fixcached = rm -r --cached .
|
||||
delete-last-commit = reset --soft HEAD~1
|
||||
purge-last-commit = reset --hard HEAD~1
|
||||
pushdetachedhead = push origin HEAD:master
|
||||
getbranchauthor = "!f() { git for-each-ref --format='%(committerdate) %09 %(authorname) %09 %(refname)' | sort -k5n -k2M -k3n -k4n; }; f"
|
||||
[merge]
|
||||
conflictstyle = diff3
|
||||
tool = vimdiff
|
||||
|
|
24
aliases
24
aliases
|
@ -80,6 +80,10 @@ alias md='mkdir -p'
|
|||
alias rd=rmdir
|
||||
alias rmbrokenlinks='for f in $(find -L . -maxdepth 1 -type l); do unlink "$f";done'
|
||||
|
||||
# mount/unmount
|
||||
alias m=mount
|
||||
alias u=umount
|
||||
|
||||
# tests
|
||||
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 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
|
||||
alias rock64='sudo minicom -D /dev/ttyUSB0 --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&'
|
||||
|
||||
# remote control
|
||||
alias virgooff='ssh virgo sudo systemctl poweroff'
|
||||
alias virgoreboot='ssh virgo sudo systemctl reboot'
|
||||
# tinakisti
|
||||
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 aldebaransuspend='ssh aldebaran sudo systemctl suspend'
|
||||
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
|
||||
alias nextcloud-add-missing-indices='docker exec -ti nc_app_1 php occ db:add-missing-indices'
|
||||
|
|
Loading…
Reference in a new issue