Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- abbrev-alias -c y="yay"
- abbrev-alias -c g="git"
- abbrev-alias -c gp="git pull"
- abbrev-alias -c gc="git commit"
- abbrev-alias -c gpp="git push"
- if command -v pacman >/dev/null 2>&1; then
- abbrev-alias -c syu="sudo pacman -Syu"
- else
- abbrev-alias -c syu="sudo apt update && sudo apt upgrade"
- fi
- alias -r | {
- while read -r a; do
- # don't convert some aliases to abbrevs
- case "$a" in
- # ls?=* | ll?=* | ls=* | ll=*) continue ;;
- z?=* | z=*) continue ;;
- cp=* | df=* | free=* | np=* | grep=*) continue ;;
- esac
- source <(echo "abbrev-alias $a")
- done
- }
Advertisement
Add Comment
Please, Sign In to add comment