]> git.rmz.io Git - dotfiles.git/blob - zshrc
add clean-hunspell script
[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 csh_nullglob # 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 ~/bin ]] && path=(~/bin $path)
33 [[ -d /opt/android-sdk ]] && path=($path /opt/android-sdk/platform-tools)
34
35 # source aliases
36 [[ -f ~/.aliases ]] && source ~/.aliases
37 for alias_file ($ZSH/aliases/*.zsh); do
38 source $alias_file
39 done
40
41 # vim stuff
42 export EDITOR=vim
43 export VISUAL=vim
44
45 # set up a few named directories
46 hash -d Skaro=/mnt/Skaro
47 hash -d ccr=~/ccr
48 hash -d src=~/src
49 hash -d chroot_testing=/buildsystem/testing/buildroot
50 hash -d chroot_master=/buildsystem/master/buildroot
51 hash -d chroot_lib32=/buildsystem/lib32/buildroot
52 hash -d wineprefixes=/mnt/sdd5/wineprefixes
53
54 # set some env variables
55 export _gamedir=/mnt/Skaro/Games/Linux/HumbleBundle