]> git.rmz.io Git - dotfiles.git/blobdiff - zshrc
add xbindkeysrc
[dotfiles.git] / zshrc
diff --git a/zshrc b/zshrc
index 54dba8983012bb7bcc1d839d4f2873c4743b0ce5..a64db76e47bdf589a9fd01d73e01316a71f6df87 100644 (file)
--- a/zshrc
+++ b/zshrc
@@ -1,44 +1,63 @@
-# Lines configured by zsh-newuser-install
-HISTFILE=~/.histfile
-HISTSIZE=10000
-SAVEHIST=20000
-setopt histignoredups
-setopt histignorespace
-setopt appendhistory
-
-setopt autocd
+# Path to your oh-my-zsh configuration.
+ZSH=$HOME/.zsh
+
+# Set name of the theme to load.
+# Look in ~/.zsh/themes/
+# Optionally, if you set this to "random", it'll load a random theme each
+# time that oh-my-zsh is loaded.
+ZSH_THEME="ramsi"
+
+# 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"
+
+# Uncomment to change how many often would you like to wait before auto-updates occur? (in days)
+# export UPDATE_ZSH_DAYS=13
+
+# Uncomment following line if you want to disable colors in ls
+# DISABLE_LS_COLORS="true"
+
+# Uncomment following line if you want to disable autosetting terminal title.
+# DISABLE_AUTO_TITLE="true"
+
+# Uncomment following line if you want red dots to be displayed while waiting for completion
+# COMPLETION_WAITING_DOTS="true"
+
+# Which plugins would you like to load? (plugins can be found in ~/.zsh/plugins/*)
+# Custom plugins may be added to ~/.zsh/custom/plugins/
+# Example format: plugins=(rails git textmate ruby lighthouse)
+plugins=(extract git)
+
+source $ZSH/oh-my-zsh.sh
+
+# miscelaneous options
 setopt beep
 setopt extendedglob
-setopt nomatch
+setopt csh_nullglob # if glob does not match, remove pattern, if no glob matches print error
+setopt numeric_glob_sort # sort numerically not lexically
 setopt noclobber    # don't allow overwriting files with '>', use '>!' instead
+setopt notify
 setopt rcquotes     # echo 'don''t'; prints don't
 
-unsetopt notify
-
-bindkey -e
-# End of lines configured by zsh-newuser-install
-# The following lines were added by compinstall
-zstyle :compinstall filename '/home/ramsi/.zshrc'
+# populate path
+typeset -U path     # make path a unique array
+[[ -d ~/bin ]] && path=(~/bin $path)
 
-autoload -Uz compinit
-compinit
-# End of lines added by compinstall
+# load my functions
+typeset -U fpath    # make fpath a unique array
+[[ -d ~/.zsh/functions ]] && fpath=(~/.zsh/functions $fpath)
+autoload -U ${fpath[1]}/*(:t)   # loads all functions in the first element of fpath
 
 # source aliases
-[[ -f ~/.bash_aliases ]] && source ~/.bash_aliases
-
-# set up prompt
-autoload -U promptinit
-promptinit
-prompt walters
-
-# make cd act like pushd
-DIRSTACKSIZE=10
-setopt autopushd    # cd acts like pushd
-setopt pushdminus   # inverts the meaning of cp -1 and cp +1
-setopt pushdsilent  # don't print dir stack everytime
-setopt pushdtohome  # pushd with no argumens pushes to ~
-alias dh='dirs -v'
-
-# set search path for cd
-cdpath=( ~ /mnt )
+[[ -f ~/.aliases ]] && source ~/.aliases
+
+# set up a few named directories
+hash -d Skaro=/mnt/Skaro
+hash -d ccr=~/ccr
+hash -d src=~/src
+hash -d chroot_testing=/buildsystem/testing/buildroot
+hash -d chroot_master=/buildsystem/master/buildroot
+hash -d chroot_lib32=/buildsystem/lib32/buildroot
+hash -d wineprefixes=/mnt/sdd5/wineprefixes