Another copy of my dotfiles. Because I don't completely trust GitHub.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.7 KiB

4 years ago
4 years ago
4 years ago
  1. #!/usr/bin/zsh
  2. alias feh="feh --scale-down --auto-zoom --no-fehbg"
  3. alias open=xdg-open
  4. alias rm="rm -i"
  5. alias clip="xclip -selection clipboard"
  6. alias g="git "
  7. alias tmux="TERM=screen-256color-bce tmux"
  8. alias t="tmux"
  9. alias tn="tmux new -s "
  10. alias tat="tmux a -t "
  11. alias yain="yay -Syu "
  12. alias ls="ls --color"
  13. alias yay="yay --sudoloop"
  14. alias lf=lf-ueberzug
  15. alias vim=nvim
  16. weechat(){
  17. tmux has-session -t weechat 2> /dev/null
  18. if [ $? != 0 ]; then
  19. tmux new-session -s weechat weechat > /dev/null 2> /dev/null
  20. else
  21. tat weechat
  22. fi
  23. }
  24. # Suffix aliases
  25. alias -g G=" | rg -i "
  26. alias gshh="gcloud cloud-shell ssh --authorize-session"
  27. # Git
  28. alias ga="git add"
  29. alias gcl="git clone --recursive --depth=16"
  30. alias gc="git commit"
  31. alias gcm="git commit -m"
  32. alias gp="git push"
  33. alias gpall="git remote | xargs -I R git push R"
  34. alias gpl="git pull"
  35. # Homedir Cleanup
  36. alias wget="wget --hsts-file=\"$XDG_CACHE_HOME/wget-hsts\""
  37. alias yarn="yarn --use-yarnrc $XDG_CONFIG_HOME/yarn/config"
  38. alias tmate="tmate -f $XDG_CONFIG_HOME/tmate/tmate.conf"
  39. alias mc="mc --config-dir=$XDG_CONFIG_HOME/mc"
  40. alias abook="abook --config \"$XDG_CONFIG_HOME\"/abook/abookrc --datafile \"$XDG_DATA_HOME\"/abook/addressbook"
  41. alias imapfilter="imapfilter -c \"$IMAPFILTER_CONFIG\""
  42. alias dots="git --git-dir=$HOME/.dotfiles.git/ --work-tree=$HOME"
  43. alias dpall="dots remote | xargs -I R git --git-dir=$HOME/.dotfiles.git/ --work-tree=$HOME push R"
  44. alias dignore="dots update-index --assume-unchanged {pkg.list,install.sh,README.md}"
  45. alias da="dots add -u"
  46. alias dcm="dots commit"
  47. alias bon="sudo bash -c 'rc-service bluetooth start && rfkill unblock bluetooth'"
  48. # Override CoreUtils, probably a ba idea but way more convenient
  49. alias cp='rsync -a --progress'
  50. alias wget='aria2c'