]> git.rmz.io Git - dotfiles.git/blob - zshrc
offlineimap: cleanup rc + switch to cron
[dotfiles.git] / zshrc
1 # Path to your oh-my-zsh configuration.
2 ZSH=$HOME/.zsh
3
4 # Load all of the config files in $ZSH/lib that end in .zsh
5 for config_file ($ZSH/lib/*.zsh); do
6 source $config_file
7 done
8
9 # Set name of the theme to load.
10 # Look in $ZSH/themes
11 ZSH_THEME="ramsi"
12 [[ -f "$ZSH/themes/${ZSH_THEME}.zsh-theme" ]] && source "$ZSH/themes/${ZSH_THEME}.zsh-theme"
13
14 # load my functions
15 typeset -U fpath # make fpath a unique array
16 [[ -d ~/.zsh/functions ]] && fpath=(~/.zsh/functions $fpath)
17 autoload -U ${fpath[1]}/*(:t) # loads all functions in the first element of fpath
18
19 autoload -U compinit; compinit
20
21 # miscelaneous options
22 setopt extendedglob
23 setopt cshnullglob # if glob does not match, remove pattern, if no glob matches print error
24 setopt numeric_glob_sort # sort numerically not lexically
25 setopt noclobber # don't allow overwriting files with '>', use '>!' instead
26 setopt notify
27 setopt rcquotes # echo 'don''t'; prints don't
28 setopt dvorak # correct_all uses dvorak
29
30 # populate path
31 typeset -U path # make path a unique array
32 [[ -d ~/.local/bin ]] && path=(~/.local/bin $path)
33 [[ -d ~/bin ]] && path=(~/bin $path)
34 [[ -d /extra ]] && path=($path /extra/bin /extra/usr/bin /extra/sbin /extra/usr/sbin)
35 [[ -d /opt/android-sdk ]] && path=($path /opt/android-sdk/platform-tools)
36
37 # source aliases
38 [[ -f ~/.aliases ]] && source ~/.aliases
39 for alias_file ($ZSH/aliases/*.zsh); do
40 source $alias_file
41 done
42
43 # vim stuff
44 export EDITOR=vim
45 export VISUAL=vim
46 export BROWSER=dwb
47
48 # set up a few named directories
49 hash -d Skaro=/mnt/Skaro
50 hash -d ccr=~/ccr
51 hash -d src=~/src
52 hash -d chroot_testing=/buildsystem/testing/buildroot
53 hash -d chroot_master=/buildsystem/master/buildroot
54 hash -d chroot_lib32=/buildsystem/lib32/buildroot
55 hash -d wineprefixes=/mnt/data/wineprefixes
56 hash -d UniMaas=~/dropbox/Documents/UniMaas
57
58 # set some env variables
59 export _gamedir=/mnt/Skaro/Games/Linux/HumbleBundle
60
61 # ros
62 if [[ -f "/opt/ros/groovy/setup.zsh" ]]; then
63 export ROS_WORKSPACE=~/src/ros
64 export ROS_OS_OVERRIDE=arch
65 fi