Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # ~/.zshrc
- #
- # Author: ygoreus
- # Version: 0.1
- # Date: Oct 13 2014
- #
- # If not running interactively, don't do anything
- [[ $- != *i* ]] && return
- # History
- HISTFILE=~/.config/zsh/.histfile
- HISTSIZE=100000
- SAVEHIST=100000
- ## Disable setting the terminal title.
- DISABLE_AUTO_TITLE="true"
- ## Display waiting dots "..." when waiting on suggestions.
- COMPLETION_WAITING_DOTS="true"
- # Set to this to use case-sensitive completion.
- CASE_SENSITIVE="true"
- # Comment this out to disable bi-weekly auto-update checks
- DISABLE_AUTO_UPDATE="true"
- ## Variables
- export EDITOR="vim"
- export PAGER="vimpager"
- export BROWSER="dwb"
- export MOVPLAY="vlc"
- export PICVIEW="ristretto"
- export SNDPLAY="vlc"
- export TERMINAL="terminator"
- # Listing
- alias ls='ls -xF --group-directories-first --color=always'
- alias lh='ls -A'
- alias ll='ls -lh'
- alias la='ll -A'
- # Package Manager
- alias cUc='checkupdates | wc -l'
- alias cU='checkupdates'
- alias pS='pacaur -S'
- alias pSy='pS -y'
- alias pSyy='pS -yy'
- alias pSu='pS -u'
- alias pSyu='pS -yu'
- alias pSyyu='pS -yyu'
- alias pSs='pacaur -Ss'
- alias pSi='pS -i'
- alias pQ='pacaur -Q'
- alias pQs='pQ -s'
- alias pQi='pQ -i'
- alias pR='pacaur -R'
- alias pRsn='pR -sn'
- # Editing Openbox config files.
- alias obcl='obxprop | grep "^_OB_APP"'
- alias vOm='vim ~/.config/openbox/menu.xml'
- alias vOa='vim ~/.config/openbox/autostart'
- alias vOe='vim ~/.config/openbox/environment'
- alias vOr='vim ~/.config/openbox/rc.xml'
- alias vOl='sudo vim /etc/oblogout.conf'
- # Editing tint2
- alias vTr='vim ~/.config/tint2/tint2rc'
- # Editing Conky
- alias vCr='vim ~/.config/conky/arch.conkyrc'
- alias vCl='vim ~/.config/conky/gauges_conky.lua'
- ## Editing Xresources
- alias vXr='vim ~/.Xresources'
- alias XTR='xrdb -merge ~/.Xresources'
- alias vXi='vim ~/.xinitrc'
- alias vX='vim ~/.xmonad/openbox.xmobarrc'
- ## Editing XMonad configs
- alias vXb='vim ~/.xmonad/xmonad.xmobarrc'
- alias vXm='vim ~/.xmonad/xmonad.hs'
- ## Zshell config and history.
- alias vZr='vim ~/.zshrc'
- alias vZh='vim ~/.config/zsh/.histfile'
- ## Vim stuff
- alias vVr='vim ~/.vimrc'
- alias edit='vim'
- alias vi='vim'
- # Disallow changing permissions on '/'
- alias chown='chown --preserve-root'
- alias chmod='chmod --preserve-root'
- alias chgrp='chgrp --preserve-root'
- # Short-hand
- alias c='clear'
- alias q='exit'
- alias g='grep'
- alias h='history'
- alias k='kill'
- # Other assorted aliases
- alias visudo='EDITOR=vim visudo'
- alias vS='visduo'
- alias a3='clear && archey3'
- alias sf='clear && screenfetch -D "Parabola"'
- alias sfs='clear && screenfetch -D "Parabola" -s'
- alias tux='clear && cowthink -W 75 -f tux $(fortune)'
- alias c='clear'
- alias q='exit'
- alias root='sudo -s'
- ## Changing directories
- alias home='cd ~'
- alias Backup='cd ~/.backups'
- alias Scripts='cd ~/.scripts'
- alias cd..='cd ..'
- alias ..='cd..'
- alias ...='../..'
- alias ....='../../..'
- ## Add confirmations
- alias cp='cp -i'
- alias mv='mv -i'
- alias rm='rm -I --preserve-root'
- alias ln='ln -i'
- # Settings made by ZSH Startup
- bindkey -e
- setopt appendhistory autocd extendedglob nomatch
- unsetopt beep notify
- zstyle :compinstall filename '~/.zshrc'
- autoload -Uz compinit
- compinit
- ## Functions
- function cds ()
- {
- cd $1
- ls
- }
- function cdh ()
- {
- cd $1
- lh
- }
- function cdl ()
- {
- cd $1
- ll
- }
- function cda ()
- {
- cd $1
- la
- }
- function yt ()
- {
- cd ~/Media/Videos/Youtube/
- youtube-dl $1
- cd ~
- }
- # Colors
- autoload -U colors && colors
- ## Shell Prompt
- PROMPT=$'%{\e[1;36m%}%n%{\e[0m%} @ %{\e[1;34m%} { %3~ } %{\e[0m%}
- %{\e[1;32m%} ⏩%{\e[0m%} '
- sf
- source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement