Backup all teh dots!
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.

.zshrc 3.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. # ██
  2. # ░██
  3. # ██████ ██████░██ ██████ █████
  4. # ░░░░██ ██░░░░ ░██████ ░░██░░█ ██░░░██
  5. # ██ ░░█████ ░██░░░██ ░██ ░ ░██ ░░
  6. # ██ ░░░░░██░██ ░██ ░██ ░██ ██
  7. # ██████ ██████ ░██ ░██░███ ░░█████
  8. # ░░░░░░ ░░░░░░ ░░ ░░ ░░░ ░░░░░
  9. zstyle :compinstall filename '~/.zshrc'
  10. autoload -Uz compinit
  11. compinit
  12. LS_COLORS='di=31:fi=32:ln=36:pi=1;33:so=1;34:bd=1;35:cd=34:or=30:mi=30:ex=1;32'
  13. #SCRIPTS
  14. export PATH=$HOME/bin:$PATH
  15. export EDITOR="vim"
  16. export BROWSER="google-chrome-stable"
  17. export RHISK_COMM="zenbu"
  18. export LS_COLORS
  19. source $HOME/.ioup_token
  20. source $HOME/.zsh/completions/rhisk-comp.zsh
  21. source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
  22. source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
  23. #HISTORY
  24. HISTFILE=$HOME/.zhist
  25. HISTSIZE=1000
  26. SAVEHIST=1000
  27. #NO DUPES
  28. setopt HIST_IGNORE_DUPS
  29. #PROMPT
  30. PROMPT="%K{8}%F{11} » %K{0}%F{6} [%F{7}%1~%F{6}]%F{2};;%f%k "
  31. #ZSH SYNTAX HIGHTLIGHTING
  32. ZSH_HIGHLIGHT_STYLES[unknown-token]=fg=red.bold,standout
  33. ZSH_HIGHLIGHT_STYLES[reserved-word]=fg=cyan,bold
  34. ZSH_HIGHLIGHT_STYLES[alias]=fg=none
  35. ZSH_HIGHLIGHT_STYLES[builtin]=fg=none
  36. ZSH_HIGHLIGHT_STYLES[function]=fg=white
  37. ZSH_HIGHLIGHT_STYLES[command]=fg=none
  38. ZSH_HIGHLIGHT_STYLES[precommand]=fg=white,bold
  39. ZSH_HIGHLIGHT_STYLES[commandseparator]=fg=green,bold
  40. ZSH_HIGHLIGHT_STYLES[hashed-command]=fg=blue
  41. ZSH_HIGHLIGHT_STYLES[path]=fg=white,bold
  42. ZSH_HIGHLIGHT_STYLES[path_pathseparator]=fg=red,bold
  43. ZSH_HIGHLIGHT_STYLES[path_prefix]=fg=yellow
  44. ZSH_HIGHLIGHT_STYLES[path_approx]=fg=yellow,bold
  45. ZSH_HIGHLIGHT_STYLES[globbing]=fg=blue,bold
  46. ZSH_HIGHLIGHT_STYLES[history-expansion]=fg=red,standout
  47. ZSH_HIGHLIGHT_STYLES[single-hyphen-option]=fg=red
  48. ZSH_HIGHLIGHT_STYLES[double-hyphen-option]=fg=red
  49. ZSH_HIGHLIGHT_STYLES[back-quoted-argument]=fg=white
  50. ZSH_HIGHLIGHT_STYLES[single-quoted-argument]=fg=green
  51. ZSH_HIGHLIGHT_STYLES[double-quoted-argument]=fg=green
  52. ZSH_HIGHLIGHT_STYLES[dollar-double-quoted-argument]=fg=magenta
  53. ZSH_HIGHLIGHT_STYLES[back-double-quoted-argument]=fg=green
  54. ZSH_HIGHLIGHT_STYLES[assign]=fg=white,bold
  55. #ALIAS
  56. alias ..='cd ..'
  57. alias ...='cd ../..'
  58. alias ....='cd ../../..'
  59. alias q='exit'
  60. alias c='clear'
  61. alias ls='ls -alhF --color=auto'
  62. alias mv='mv -v'
  63. alias cp='cp -v'
  64. alias df='df -h'
  65. alias ps='ps -ef'
  66. #PACMAN
  67. alias install='sudo pacman -S'
  68. alias remove='sudo pacman -Rs'
  69. alias update='sudo pacman -Syu'
  70. alias search='sudo pacman -Ss'
  71. alias cleanup='sudo pacman -Rns $(pacman -Qtdq)'
  72. alias pkgcnt='pacman -Q | wc -l'
  73. #PATHS
  74. alias bin='cd $HOME/bin'
  75. alias documents='cd $HOME/documents'
  76. alias downloads='cd $HOME/downloads'
  77. alias images='cd $HOME/images'
  78. alias music='cd $HOME/music'
  79. alias videos='cd $HOME/videos'
  80. #OTHER
  81. alias v='vim'
  82. alias mktar='tar -cvzf'
  83. alias scr='screenshot'
  84. alias vol='pulsemixer'
  85. alias vtop='vtop --theme base8'
  86. alias tcli='transmission-cli'
  87. alias rsync='rsync -rtv'
  88. alias colorz='colorz -n 8'
  89. alias rec='yaxg -w -D 2 -f $HOME/videos/screencasts/%d%b2k%y-%H%M%S'
  90. alias highlight='highlight --out-format=ansi'
  91. alias qr='qrencode -t UTF8'
  92. #FUNCTIONS
  93. ioup_clear() {
  94. for file in `ioup -l | awk '{print $1}'`; do
  95. ioup -r $file
  96. done
  97. }
  98. ix() {
  99. cat "$1" | curl -F 'f:1=<-' -F 'read:1=2' ix.io
  100. }
  101. getip() {
  102. w3m -no-cookie -dump "https://duckduckgo.com/?q=what+is+my+ip+address&t=ffab&ia=answer" | awk '/address is/ {print $5}' | head -1
  103. }
  104. mtp-mount() {
  105. gvfs-mount -li | awk -F= '{if(index($2,"mtp") == 1)system("gvfs-mount "$2)}'
  106. }
  107. separator() {
  108. for ((x = 0; x < $(tput cols); x++)); do
  109. printf %s "$(tput setaf 0)█$(tput sgr0)"
  110. done
  111. }