Advertisement
poetician

zshrc Jonathan Theme

Jan 13th, 2020
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.09 KB | None | 0 0
  1. # If you come from bash you might have to change your $PATH.
  2. # export PATH=$HOME/bin:/usr/local/bin:$PATH
  3.  
  4. # Path to your oh-my-zsh installation.
  5. #installation via script from github
  6. #export ZSH="/home/$USER/.oh-my-zsh"
  7. #installation via yay -S oh-my-zsh-git
  8. export ZSH=/usr/share/oh-my-zsh/
  9.  
  10. # Set name of the theme to load --- if set to "random", it will
  11. # load a random theme each time oh-my-zsh is loaded, in which case,
  12. # to know which specific one was loaded, run: echo $RANDOM_THEME
  13. # See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
  14. #ZSH_THEME="random"
  15. ZSH_THEME="jonathan"
  16.  
  17. # Set list of themes to pick from when loading at random
  18. # Setting this variable when ZSH_THEME=random will cause zsh to load
  19. # a theme from this variable instead of looking in ~/.oh-my-zsh/themes/
  20. # If set to an empty array, this variable will have no effect.
  21. # ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
  22.  
  23. # Uncomment the following line to use case-sensitive completion.
  24. # CASE_SENSITIVE="true"
  25.  
  26. # Uncomment the following line to use hyphen-insensitive completion.
  27. # Case-sensitive completion must be off. _ and - will be interchangeable.
  28. HYPHEN_INSENSITIVE="true"
  29.  
  30. # Uncomment the following line to disable bi-weekly auto-update checks.
  31. # DISABLE_AUTO_UPDATE="true"
  32.  
  33. # Uncomment the following line to automatically update without prompting.
  34. # DISABLE_UPDATE_PROMPT="true"
  35.  
  36. # Uncomment the following line to change how often to auto-update (in days).
  37. # export UPDATE_ZSH_DAYS=13
  38.  
  39. # Uncomment the following line if pasting URLs and other text is messed up.
  40. # DISABLE_MAGIC_FUNCTIONS=true
  41.  
  42. # Uncomment the following line to disable colors in ls.
  43. # DISABLE_LS_COLORS="true"
  44.  
  45. # Uncomment the following line to disable auto-setting terminal title.
  46. # DISABLE_AUTO_TITLE="true"
  47.  
  48. # Uncomment the following line to enable command auto-correction.
  49. ENABLE_CORRECTION="true"
  50.  
  51. # Uncomment the following line to display red dots whilst waiting for completion.
  52. COMPLETION_WAITING_DOTS="true"
  53.  
  54. # Uncomment the following line if you want to disable marking untracked files
  55. # under VCS as dirty. This makes repository status check for large repositories
  56. # much, much faster.
  57. # DISABLE_UNTRACKED_FILES_DIRTY="true"
  58.  
  59. # Uncomment the following line if you want to change the command execution time
  60. # stamp shown in the history command output.
  61. # You can set one of the optional three formats:
  62. # "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
  63. # or set a custom format using the strftime function format specifications,
  64. # see 'man strftime' for details.
  65. # HIST_STAMPS="mm/dd/yyyy"
  66.  
  67. # Would you like to use another custom folder than $ZSH/custom?
  68. # ZSH_CUSTOM=/path/to/new-custom-folder
  69.  
  70. # Which plugins would you like to load?
  71. # Standard plugins can be found in ~/.oh-my-zsh/plugins/*
  72. # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
  73. # Example format: plugins=(rails git textmate ruby lighthouse)
  74. # Add wisely, as too many plugins slow down shell startup.
  75.  
  76. #source ~/.oh-my-zsh/plugins/
  77.  
  78. plugins=(git)
  79.  
  80. source $ZSH/oh-my-zsh.sh
  81.  
  82. # User configuration
  83.  
  84. # export MANPATH="/usr/local/man:$MANPATH"
  85.  
  86. # You may need to manually set your language environment
  87. # export LANG=en_US.UTF-8
  88.  
  89. # Preferred editor for local and remote sessions
  90. # if [[ -n $SSH_CONNECTION ]]; then
  91. # export EDITOR='vim'
  92. # else
  93. # export EDITOR='mvim'
  94. # fi
  95.  
  96. # Compilation flags
  97. # export ARCHFLAGS="-arch x86_64"
  98.  
  99.  
  100. #### ARCOLINUX SETTINGS ####
  101.  
  102.  
  103. source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
  104.  
  105. setopt GLOB_DOTS
  106.  
  107. # If not running interactively, don't do anything
  108. [[ $- != *i* ]] && return
  109.  
  110. export HISTCONTROL=ignoreboth:erasedups
  111.  
  112. #PS1='[\u@\h \W]\$ '
  113.  
  114. if [ -d "$HOME/.bin" ] ;
  115. then PATH="$HOME/.bin:$PATH"
  116. fi
  117.  
  118. if [ -d "$HOME/.local/bin" ] ;
  119. then PATH="$HOME/.local/bin:$PATH"
  120. fi
  121.  
  122. #list
  123. alias ls='ls --color=auto'
  124. alias la='ls -a'
  125. alias ll='ls -la'
  126. alias l='ls'
  127. alias l.="ls -A | egrep '^\.'"
  128.  
  129. #fix obvious typo's
  130. alias cd..='cd ..'
  131. alias pdw="pwd"
  132. alias udpate='sudo pacman -Syyu'
  133. alias upate='sudo pacman -Syyu'
  134.  
  135. ## Colorize the grep command output for ease of use (good for log files)##
  136. alias grep='grep --color=auto'
  137. alias egrep='egrep --color=auto'
  138. alias fgrep='fgrep --color=auto'
  139.  
  140. # readable output
  141. alias df='df -h'
  142.  
  143. # pacman unlock
  144. alias unlock="sudo rm /var/lib/pacman/db.lck"
  145.  
  146. # free
  147. alias free="free -mt"
  148.  
  149. # use all cores
  150. alias uac="sh ~/.bin/main/000*"
  151.  
  152. # continue download
  153. alias wget="wget -c"
  154.  
  155. # userlist
  156. alias userlist="cut -d: -f1 /etc/passwd"
  157.  
  158. # merge new settings
  159. alias merge="xrdb -merge ~/.Xresources"
  160.  
  161. # Aliases for software managment
  162. # pacman or pm
  163. alias pacman='sudo pacman --color auto'
  164. alias update='sudo pacman -Syyu'
  165.  
  166. # yay as aur helper - updates everything
  167. alias pksyua="yay -Syu --noconfirm"
  168. alias upall="yay -Syu --noconfirm"
  169.  
  170. # ps
  171. alias psa="ps auxf"
  172. alias psgrep="ps aux | grep -v grep | grep -i -e VSZ -e"
  173.  
  174. # grub update
  175. alias update-grub="sudo grub-mkconfig -o /boot/grub/grub.cfg"
  176.  
  177. # add new fonts
  178. alias update-fc='sudo fc-cache -fv'
  179.  
  180. # copy/paste all content of /etc/skel over to home folder - backup of config created - beware
  181. alias skel='cp -Rf ~/.config ~/.config-backup-$(date +%Y.%m.%d-%H.%M.%S) && cp -rf /etc/skel/* ~'
  182. # backup contents of /etc/skel to hidden backup folder in home/user
  183. alias bupskel='cp -Rf /etc/skel ~/.skel-backup-$(date +%Y.%m.%d-%H.%M.%S)'
  184.  
  185. # copy bashrc-latest over on bashrc - cb= copy bashrc
  186. # alias cb='sudo cp /etc/skel/.bashrc-latest /etc/skel/.bashrc && cp /etc/skel/.bashrc-latest ~/.bashrc && cp /etc/skel/.bashrc-latest ~/.bashrc-latest && source ~/.bashrc'
  187. # copy /etc/skel/.zshrc over on ~/.zshrc - cb= copy zshrc
  188. alias cz='sudo cp /etc/skel/.zshrc ~/.zshrc && source ~/.zshrc'
  189.  
  190. # switch between bash and zsh
  191. alias tobash="sudo chsh $USER -s /bin/bash && echo 'Now log out.'"
  192. alias tozsh="sudo chsh $USER -s /bin/zsh && echo 'Now log out.'"
  193.  
  194. # quickly kill conkies
  195. alias kc='killall conky'
  196.  
  197. # hardware info --short
  198. alias hw="hwinfo --short"
  199.  
  200. # skip integrity check
  201. alias yayskip='yay -S --mflags --skipinteg'
  202. alias trizenskip='trizen -S --skipinteg'
  203.  
  204. # check vulnerabilities microcode
  205. alias microcode='grep . /sys/devices/system/cpu/vulnerabilities/*'
  206.  
  207. # get fastest mirrors in your neighborhood
  208. alias mirror="sudo reflector -f 30 -l 30 --number 10 --verbose --save /etc/pacman.d/mirrorlist"
  209. alias mirrord="sudo reflector --latest 50 --number 20 --sort delay --save /etc/pacman.d/mirrorlist"
  210. alias mirrors="sudo reflector --latest 50 --number 20 --sort score --save /etc/pacman.d/mirrorlist"
  211. alias mirrora="sudo reflector --latest 50 --number 20 --sort age --save /etc/pacman.d/mirrorlist"
  212.  
  213. # mounting the folder Public for exchange between host and guest on virtualbox
  214. alias vbm="sudo mount -t vboxsf -o rw,uid=1000,gid=1000 Public /home/$USER/Public"
  215.  
  216. # shopt
  217. # shopt -s autocd # change to named directory
  218. # shopt -s cdspell # autocorrects cd misspellings
  219. # shopt -s cmdhist # save multi-line commands in history as single line
  220. # shopt -s dotglob
  221. # shopt -s histappend # do not overwrite history
  222. # shopt -s expand_aliases # expand aliases
  223.  
  224. # youtube-dl
  225. alias yta-aac="youtube-dl --extract-audio --audio-format aac "
  226. alias yta-best="youtube-dl --extract-audio --audio-format best "
  227. alias yta-flac="youtube-dl --extract-audio --audio-format flac "
  228. alias yta-m4a="youtube-dl --extract-audio --audio-format m4a "
  229. alias yta-mp3="youtube-dl --extract-audio --audio-format mp3 "
  230. alias yta-opus="youtube-dl --extract-audio --audio-format opus "
  231. alias yta-vorbis="youtube-dl --extract-audio --audio-format vorbis "
  232. alias yta-wav="youtube-dl --extract-audio --audio-format wav "
  233.  
  234. alias ytv-best="youtube-dl -f bestvideo+bestaudio "
  235.  
  236. # Recent Installed Packages
  237. alias rip="expac --timefmt='%Y-%m-%d %T' '%l\t%n %v' | sort | tail -200 | nl"
  238. alias riplong="expac --timefmt='%Y-%m-%d %T' '%l\t%n %v' | sort | tail -3000 | nl"
  239.  
  240. # Cleanup orphaned packages
  241. alias cleanup='sudo pacman -Rns $(pacman -Qtdq)'
  242.  
  243. # get the error messages from journalctl
  244. alias jctl="journalctl -p 3 -xb"
  245.  
  246. # nano for important configration files
  247. # know what you do in these files
  248. alias nlightdm="sudo nano /etc/lightdm/lightdm.conf"
  249. alias npacman="sudo nano /etc/pacman.conf"
  250. alias ngrub="sudo nano /etc/default/grub"
  251. alias nmkinitcpio="sudo nano /etc/mkinitcpio.conf"
  252. alias nslim="sudo nano /etc/slim.conf"
  253. alias noblogout="sudo nano /etc/oblogout.conf"
  254. alias nmirrorlist="sudo nano /etc/pacman.d/mirrorlist"
  255. alias nconfgrub="sudo nano /boot/grub/grub.cfg"
  256.  
  257. # gpg
  258. # verify signature for isos
  259. alias gpg-check="gpg2 --keyserver-options auto-key-retrieve --verify"
  260. # receive the key of a developer
  261. alias gpg-retrieve="gpg2 --keyserver-options auto-key-retrieve --receive-keys"
  262.  
  263. # shutdown or reboot
  264. alias ssn="sudo shutdown now"
  265. alias sr="sudo reboot"
  266.  
  267. # # ex = EXtractor for all kinds of archives
  268. # # usage: ex <file>
  269. ex ()
  270. {
  271. if [ -f $1 ] ; then
  272. case $1 in
  273. *.tar.bz2) tar xjf $1 ;;
  274. *.tar.gz) tar xzf $1 ;;
  275. *.bz2) bunzip2 $1 ;;
  276. *.rar) unrar x $1 ;;
  277. *.gz) gunzip $1 ;;
  278. *.tar) tar xf $1 ;;
  279. *.tbz2) tar xjf $1 ;;
  280. *.tgz) tar xzf $1 ;;
  281. *.zip) unzip $1 ;;
  282. *.Z) uncompress $1;;
  283. *.7z) 7z x $1 ;;
  284. *.deb) ar x $1 ;;
  285. *.tar.xz) tar xf $1 ;;
  286. *) echo "'$1' cannot be extracted via ex()" ;;
  287. esac
  288. else
  289. echo "'$1' is not a valid file"
  290. fi
  291. }
  292.  
  293. # create a file called .zshrc-personal and put all your personal aliases
  294. # in there. They will not be overwritten by skel.
  295.  
  296. [[ -f ~/.zshrc-personal ]] && . ~/.zshrc-personal
  297.  
  298. # neofetch
  299. # Lines configured by zsh-newuser-install
  300. HISTFILE=~/.histfile
  301. HISTSIZE=1000
  302. SAVEHIST=1000
  303. setopt appendhistory autocd beep extendedglob nomatch notify
  304. bindkey -v
  305. # End of lines configured by zsh-newuser-install
  306. # The following lines were added by compinstall
  307. zstyle :compinstall filename '/home/poetician/.zshrc'
  308.  
  309. autoload -Uz compinit
  310. compinit
  311. # End of lines added by compinstall
  312.  
  313. source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement