.dotfiles/.config/aliasrc

43 lines
1.4 KiB
Plaintext
Raw Normal View History

#!/bin/bash
alias aliases='vim ~/.config/aliasrc && source ~/.config/aliasrc'
2019-12-20 11:22:51 +00:00
alias df='df -h'
alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
2020-02-19 01:05:10 +00:00
alias dotfiles-mail='/usr/bin/git --git-dir=$HOME/.dotfiles-mail/ --work-tree=$HOME'
2019-12-20 11:22:51 +00:00
alias du='du -hL'
alias git-update-submodules='
git submodule update --init --recursive;
git submodule foreach --recursive git fetch;
git submodule foreach --recursive git merge origin master
'
alias gpg2-decrypt='function _gpg2-decrypt(){ gpg2 --output ${1%".gpg"} --decrypt $1; }; _gpg2-decrypt'
alias gpg2-encrypt='function _gpg2-encrypt(){ gpg2 --output $1.gpg --encrypt $1; }; _gpg2-encrypt'
alias hist-grep='history 1 | grep '
2019-12-20 11:22:51 +00:00
alias ls='ls -Flh --color=never'
alias lsblk='lsblk -o +PARTLABEL -o +FSTYPE'
2020-02-29 11:18:11 +00:00
alias magit='vim -c MagitOnly'
alias make='make --no-print-directory'
2019-12-20 11:22:51 +00:00
alias md5='ms5'
alias md5sum-dir='function _md5sum-dir(){ find $1 -type f -exec md5sum {} \; | md5sum; }; _md5sum-dir'
alias pacman-autoremove='pacman -Rns $(pacman -Qtdq)'
alias portalo-hz='xrandr --output HDMI-1 --mode 2560x1440 --refresh'
2019-12-20 11:22:51 +00:00
alias ssh-sftp='$(read -t 2 -r tool; if [[ -z "$tool" ]]; then tool="ssh"; fi; echo $tool)'
alias sudo='sudo '
2020-02-26 09:44:16 +00:00
alias synced-repos-status='
echo "dotfiles" && dotfiles status;
echo "\n\ndotfiles-mail" && dotfiles-mail status;
echo "\n\npass git" && pass git status
'
2019-12-20 11:22:51 +00:00
alias rm='rm -I'