-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zprofile
executable file
·79 lines (54 loc) · 1.94 KB
/
.zprofile
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
##
## Mike's .zprofile file
##
source ~/dotfiles/common.sh
#-------------------------------------------------------------------------------
# oh-my-zsh setup
# Path to your oh-my-zsh configuration.
ZSH=~/.oh-my-zsh
# Set name of the theme to load.
# Look in $ZSH/themes/
ZSH_THEME="mikenichols"
# Comment this out to disable weekly auto-update checks
DISABLE_AUTO_UPDATE="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=(git github node osx)
source "$ZSH"/oh-my-zsh.sh
# Custom options have to happen after we load the oh-my-zsh.sh file
# Turn off shared history
unsetopt share_history
# Turn off autocorrect. This is too annoying
unsetopt correct
unsetopt correct_all
DISABLE_CORRECTION="true"
# oh-my-zsh default aliases this to 'ls -l'
alias ll="ls -hAl"
export LSCOLORS="ExGxcxdxCxegedabagacad"
#-------------------------------------------------------------------------------
# zsh functions
alias resh="source ~/.zprofile && echo '.zprofile reloaded'"
#-------------------------------------------------------------------------------
# path
# Force unique values for the path array (which is tied to $PATH)
typeset -U path
# This was recommended by homebrew when I installed node
path=(/usr/local/share/npm/bin "$path[@]")
# For rabbitmq
path=(/usr/local/sbin "$path[@]")
# For great justice
path=(/usr/local/bin "$path[@]")
# My scripts
path=(~/dotfiles/bin "$path[@]")
# Emacs cask
path=(~/.cask/bin "$path[@]")
# rbenv doesn't add gem binaries to your path
if type rbenv &> /dev/null; then
path=("$(rbenv root)/versions/$(rbenv version-name)/bin" "$path[@]")
fi
#-------------------------------------------------------------------------------
# fzf
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
#-------------------------------------------------------------------------------
## end .zprofile