-
Notifications
You must be signed in to change notification settings - Fork 0
/
zshrc
36 lines (27 loc) · 1022 Bytes
/
zshrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# -*- mode: shell-script -*-
export DOTFILES_ROOT="$HOME/git/dotfiles"
# Additional function path:
if [ -d "$DOTFILES_ROOT"/zshrc.d/functions ]; then
fpath=("$DOTFILES_ROOT"/zshrc.d/functions $fpath)
fi
# Set custom prompt
setopt PROMPT_SUBST
autoload -U promptinit
promptinit
prompt chn
path=(~/bin /usr/local/bin /opt/local/bin /opt/local/sbin $path /bin /usr/bin /opt/local/Library/Frameworks/Python.framework/Versions/Current/bin /opt/local/libexec/perl5.12/sitebin /usr/local/texlive/2013/bin/x86_64-darwin)
#WORDCHARS="${WORDCHARS:s#/#}"
for file in "$DOTFILES_ROOT"/functions/*; do
source "$file"
done
for file in "$DOTFILES_ROOT"/zshrc.d/*.zsh; do
source "$file"
done
source /usr/local/share/chruby/chruby.sh
source /usr/local/share/gem_home/gem_home.sh
chruby ruby-2.5
export PATH="$PATH:$HOME/.cargo/bin" # Add cargo (rust pkg manager) to PATH for scripting
# alias npm-exec=PATH=$(npm bin):$PATH
if [[ `uname` == 'Darwin' ]] then
export GPG_AGENT_INFO=/tmp/gpg-H6WcMG/S.gpg-agent:14501:1
fi