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.

75 lines
2.1 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 vimorig=$(which vim)
  16. alias vim=nvim
  17. weechat(){
  18. tmux has-session -t weechat 2> /dev/null
  19. if [ $? != 0 ]; then
  20. tmux new-session -s weechat weechat > /dev/null 2> /dev/null
  21. else
  22. tat weechat
  23. fi
  24. }
  25. # Suffix aliases
  26. alias -g G=" | rg -i "
  27. alias gshh="gcloud cloud-shell ssh --authorize-session"
  28. # Git
  29. alias ga="git add"
  30. alias gcl="git clone --recursive --depth=16"
  31. alias gck="git checkout"
  32. alias gmg="git merge"
  33. alias gss="git stash"
  34. alias gsp="git stash pop"
  35. alias gc="git commit"
  36. alias gcm="git commit -m"
  37. alias gp="git push"
  38. alias gpall="git remote | xargs -I R git push R"
  39. alias gpl="git pull"
  40. # Homedir Cleanup
  41. alias wget="wget --hsts-file=\"$XDG_CACHE_HOME/wget-hsts\""
  42. alias yarn="yarn --use-yarnrc $XDG_CONFIG_HOME/yarn/config"
  43. alias tmate="tmate -f $XDG_CONFIG_HOME/tmate/tmate.conf"
  44. alias mc="mc --config-dir=$XDG_CONFIG_HOME/mc"
  45. alias abook="abook --config \"$XDG_CONFIG_HOME\"/abook/abookrc --datafile \"$XDG_DATA_HOME\"/abook/addressbook"
  46. alias imapfilter="imapfilter -c \"$IMAPFILTER_CONFIG\""
  47. alias dots="git --git-dir=$HOME/.dotfiles.git/ --work-tree=$HOME"
  48. alias dpall="dots remote | xargs -I R git --git-dir=$HOME/.dotfiles.git/ --work-tree=$HOME push R"
  49. alias dignore="dots update-index --assume-unchanged {pkg.list,install.sh,README.md}"
  50. alias da="dots add -u"
  51. alias dcm="dots commit"
  52. alias pwndbg="gdb -nh -x \"$XDG_CONFIG_HOME\"/gdb/pwninit"
  53. alias gef="gdb -nh -x \"$XDG_CONFIG_HOME\"/gdb/gefinit"
  54. alias bon="sudo bash -c 'rc-service bluetooth start && rfkill unblock bluetooth'"
  55. alias cx="chmod +x"
  56. alias lights_on="curl 'http://yeetclock/setcolor?R=136&G=192&B=208'"
  57. alias v="nvim"
  58. alias eduvpn="sudo openvpn ~/Documents/eduVPN.ovpn"
  59. alias sshlogin="ssh -o IdentitiesOnly=yes"
  60. alias scplogin="scp -o IdentitiesOnly=yes"
  61. alias pastebin="curl -F 'sprunge=<-' http://sprunge.us"