]> git.rmz.io Git - dotfiles.git/blob - zshrc
source ros' setup.zsh
[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 /extra ]] && path=($path /extra/bin /extra/usr/bin /extra/sbin /extra/usr/sbin)
34 [[ -d /opt/android-sdk ]] && path=($path /opt/android-sdk/platform-tools)
35
36 # source aliases
37 [[ -f ~/.aliases ]] && source ~/.aliases
38 for alias_file ($ZSH/aliases/*.zsh); do
39 source $alias_file
40 done
41
42 # vim stuff
43 export EDITOR=vim
44 export VISUAL=vim
45
46 # set up a few named directories
47 hash -d Skaro=/mnt/Skaro
48 hash -d ccr=~/ccr
49 hash -d src=~/src
50 hash -d chroot_testing=/buildsystem/testing/buildroot
51 hash -d chroot_master=/buildsystem/master/buildroot
52 hash -d chroot_lib32=/buildsystem/lib32/buildroot
53 hash -d wineprefixes=/mnt/sdd5/wineprefixes
54 hash -d UniMaas=~/dropbox/Documents/UniMaas
55
56 # set some env variables
57 export _gamedir=/mnt/Skaro/Games/Linux/HumbleBundle
58
59 # ros
60 source /opt/ros/groovy/setup.zsh
61 export ROS_WORKSPACE=~/src/ros
62 export ROS_OS_OVERRIDE=arch