-
Notifications
You must be signed in to change notification settings - Fork 17
/
zshrc
34 lines (28 loc) · 1.05 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
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.local/share/oh-my-zsh
# Set name of the theme to load.
ZSH_THEME="bira"
# Which plugins would you like to load?
# See https://github.com/robbyrussell/oh-my-zsh/tree/master/plugins
plugins=(git git-extra python colored-man)
source $ZSH/oh-my-zsh.sh
# History file settings
HISTFILE=~/.local/share/zsh/zsh_history
setopt NO_HIST_VERIFY
setopt APPEND_HISTORY # adds history
setopt INC_APPEND_HISTORY SHARE_HISTORY # adds history incrementally and share it across sessions
setopt HIST_IGNORE_ALL_DUPS # don't record dupes in history
setopt HIST_REDUCE_BLANKS
source $HOME/.dotfiles/shellrc
case "$(uname -s)" in
Linux)
# Load grc
[[ -s "/etc/grc.zsh" ]] && source /etc/grc.zsh
;;
Darwin)
# Load iTerm2 shell integration
[[ -s "~/.local/share/zsh/iterm2_shell_integration.zsh" ]] && source "~/.local/share/zsh/iterm2_shell_integration.zsh"
# Load grc
[[ -s "`brew --repository`/etc/grc.zsh" ]] && source "`brew --repository`/etc/grc.zsh"
;;
esac