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.

52 lines
1.5 KiB

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