-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzshrc
34 lines (28 loc) · 1.66 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
export DOTFILES_HOME=$HOME/.dotfiles
fpath=(/usr/local/share/zsh-completions $fpath)
export plugins=(git osx)
#ZSH_THEME="main"
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
[ -f $DOTFILES_HOME/aliases ] && source ~/.dotfiles/aliases
[ -f $DOTFILES_HOME/aliases_private ] && source ~/.dotfiles/aliases_private
[ -f $DOTFILES_HOME/tig-completion.zsh ] && source $DOTFILES_HOME/tig-completion.zsh
[ -d $HOME/flatrun ] && export PATH="$PATH:$HOME/flatrun"
[ -d $HOME/flatrun/idea/bin ] && export PATH="$PATH:$HOME/flatrun/idea/bin"
[ -d $HOME/gradle ] && export PATH="$PATH:$HOME/gradle"
PATH="$PATH:$HOME/bin"
export NVM_DIR="$HOME/.nvm"
[ -f /usr/local/opt/nvm/nvm.sh ] && . "/usr/local/opt/nvm/nvm.sh"
##############################################################################
# History Configuration
##############################################################################
HISTSIZE=3000000 #How many lines of history to keep in memory
HISTFILE=~/.zsh_history #Where to save history to disk
SAVEHIST=3000000 #Number of history entries to save to disk
HISTDUP=erase #Erase duplicates in the history file
export HISTSIZE=3000000 #How many lines of history to keep in memory
export HISTFILE=~/.zsh_history #Where to save history to disk
export SAVEHIST=3000000 #Number of history entries to save to disk
export HISTDUP=erase #Erase duplicates in the history file
setopt appendhistory #Append history to the history file (no overwriting)
setopt sharehistory #Share history across terminals
setopt incappendhistory #Immediately append to the history file, not just when a term is killed