dotfiles

Configuration files to dump into your home directory.
git clone git://git.swab.dev/dotfiles.git
Log | Files | Refs

.zshrc (2101B)


      1 # Load version control information
      2 autoload -Uz vcs_info
      3 precmd() { vcs_info }
      4 
      5 #Format the vcs_info_msg_0_ variable
      6 zstyle ':vcs_info:git:*' formats '%b'
      7 
      8 setopt PROMPT_SUBST
      9 
     10 # '%F{color} sets the color of the text
     11 # Colors black, red, green, yellow, blue, magenta, cyan and white.
     12 # '%F' or '%f' resets to the default text color.
     13 # Access the 256 color pallet with %F{0} through %F{255}.
     14 
     15 # left side of prompt
     16 PROMPT=$'\n'"%F{green}%n%F{256}:%~:%# "
     17 # right side  of prompt
     18 RPROMPT=\$vcs_info_msg_0_
     19 #setopt prompt_subst
     20 #PROMPT=$(gitInShell.sh)
     21 
     22 # History in cache directory:
     23 HISTSIZE=10000
     24 SAVEHIST=10000
     25 HISTFILE=~/.cache/zsh/history
     26 
     27 # Basic auto/tab complete:
     28 autoload -U compinit
     29 zstyle ':completion:*' menu select
     30 zmodload zsh/complist
     31 compinit
     32 _comp_options+=(globdots)	# Include hidden files.
     33 # Set background image:
     34 #feh --bg-center /home/jaron/Pictures/backgrounds/kame_goku_kuririn.png
     35 
     36 export XDG_CONFIG_HOME="$HOME/.config"
     37 export XDG_CACHE_HOME="$HOME/.cache"
     38 export XDG_DATA_HOME="$HOME/.local/share"
     39 
     40 export GOPATH="$XDG_DATA_HOME/go"
     41 
     42 export PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/games
     43 
     44 export SSH_KEY_PATH="~/.ssh/rsa_id"
     45 export EDITOR='nvim'
     46 
     47 alias vim="nvim"
     48 alias ls="ls -lh"
     49 alias wget=wget --hsts-file="$XDG_CACHE_HOME/wget-hsts"
     50 
     51 # Set VIM Keybindings:
     52 set -o vi
     53 
     54 # Exports for programs with partial XDG Home support:
     55 export WGETRC="$XDG_CONFIG_HOME/wgetrc"
     56 export LESSHISTFILE=- # Disables history for less
     57 export PASSWORD_STORE_DIR="$XDG_DATA_HOME"/pass
     58 export CARGO_HOME="$XDG_DATA_HOME"/cargo
     59 export RUSTUP_HOME="$XDG_DATA_HOME"/rustup
     60 export ATOM_HOME="$XDG_DATA_HOME"/atom
     61 export AWS_SHARED_CREDENTIALS_FILE="$XDG_CONFIG_HOME"/aws/credentials
     62 export AWS_CONFIG_FILE="$XDG_CONFIG_HOME"/aws/config
     63 export _JAVA_OPTIONS=-Djava.util.prefs.userRoot="$XDG_CONFIG_HOME"/java
     64 export ICEAUTHORITY="$XDG_CACHE_HOME"/ICEauthority
     65 export HISTFILE="$XDG_DATA_HOME"/bash/history
     66 
     67 # Load zsh-syntax-highlighting; should be last.
     68 source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 2>/dev/null