-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
78 lines (55 loc) · 2.42 KB
/
.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
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
source ~/.zshrc.old
#---------------------------------------------------------------------------------------------------
# > oh-my-zsh specific configurations
##--------------------------------------------------------------------------------------------------
# Path to your oh-my-zsh installation.
OS_VERSION="$(uname)"
if [ "$OS_VERSION" = 'Darwin' ];then
export ZSH=/Users/steve/.oh-my-zsh
elif [ "$OS_VERSION" = 'Linux' ];then
export ZSH=/home/steve/.oh-my-zsh
fi
# Theme
ZSH_THEME="pygmalion"
# Custom folder
ZSH_CUSTOM=/path/to/new-custom-folder
# Plugins
if [ "$OS_VERSION" = 'Linux' ];then
plugins=(git git-extras ruby chucknorris)
elif [ $OS_VERSION = 'Darwin' ];then
plugins=(git git-extras macos ruby)
fi
#--------------------------------------------------------------------------------------------------
# > User configuration
##--------------------------------------------------------------------------------------------------
# Load oh-my-zsh things
source $ZSH/oh-my-zsh.sh
# Preferred editor for local and remote sessions
export EDITOR='vim'
# UTF-8
export LANG=en_US.UTF-8
# History
HISTFILE="$HOME/.zsh_history"
HISTSIZE=10000000
SAVEHIST=10000000
#--------------------------------------------------------------------------------------------------
## > Path
#--------------------------------------------------------------------------------------------------
# Load path if existent
source ~/dotfiles/path.sh
#--------------------------------------------------------------------------------------------------
## > Aliases
#--------------------------------------------------------------------------------------------------
source ~/dotfiles/alias.sh
#--------------------------------------------------------------------------------------------------
## > Ruby
#--------------------------------------------------------------------------------------------------
source ~/dotfiles/ruby.sh
#--------------------------------------------------------------------------------------------------
## > Python
#--------------------------------------------------------------------------------------------------
source ~/dotfiles/python.sh
#--------------------------------------------------------------------------------------------------
## > Other
#--------------------------------------------------------------------------------------------------
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"