2021-01-11 22:37:34 +00:00
|
|
|
|
# Include our shared environment stuff
|
|
|
|
|
source ~/.environment
|
|
|
|
|
source ~/.aliases
|
|
|
|
|
source ~/.functions
|
2016-06-14 19:13:41 +00:00
|
|
|
|
|
|
|
|
|
# History Settings
|
2020-03-24 19:55:38 +00:00
|
|
|
|
export HISTIGNORE="&:ls:[bf]g:exit:reset:clear:cd:cd ..:cd..:replay"
|
2022-08-17 20:55:10 +00:00
|
|
|
|
export HISTSIZE=2500000
|
2016-06-14 19:13:41 +00:00
|
|
|
|
export HISTFILE=~/.zsh_history
|
2022-08-17 20:55:10 +00:00
|
|
|
|
export SAVEHIST=1000000
|
2016-06-14 19:13:41 +00:00
|
|
|
|
setopt INC_APPEND_HISTORY
|
|
|
|
|
setopt HIST_IGNORE_ALL_DUPS
|
|
|
|
|
setopt HIST_IGNORE_SPACE
|
|
|
|
|
setopt HIST_REDUCE_BLANKS
|
|
|
|
|
setopt HIST_VERIFY
|
|
|
|
|
|
2021-01-12 04:23:29 +00:00
|
|
|
|
# Say how long a command took, if it took more than 5 seconds
|
|
|
|
|
export REPORTTIME=5
|
2016-06-14 19:13:41 +00:00
|
|
|
|
|
|
|
|
|
# Prompts for confirmation after 'rm *' etc
|
|
|
|
|
# Helps avoid mistakes like 'rm * o' when 'rm *.o' was intended
|
|
|
|
|
setopt RM_STAR_WAIT
|
|
|
|
|
|
|
|
|
|
# Background processes aren't killed on exit of shell
|
|
|
|
|
setopt AUTO_CONTINUE
|
|
|
|
|
|
|
|
|
|
# Don’t write over existing files with >, use >! instead
|
|
|
|
|
setopt NOCLOBBER
|
|
|
|
|
|
|
|
|
|
# Don’t nice background processes
|
|
|
|
|
setopt NO_BG_NICE
|
|
|
|
|
|
2018-02-11 03:36:07 +00:00
|
|
|
|
# Check for updates...
|
|
|
|
|
# Stolen and modified Oh-My-ZSH's update system
|
2021-01-12 04:20:28 +00:00
|
|
|
|
if [ "${ENABLE_DOTFILES_AUTO_UPDATE}" ]; then
|
2021-01-12 20:10:06 +00:00
|
|
|
|
env ZSH=$ZSH _DOTFILES="${_DOTFILES}" DISABLE_UPDATE_PROMPT="${DISABLE_DOTFILES_UPDATE_PROMPT}" zsh -f "${_DOTFILES}/check_for_upgrade.sh"
|
2018-02-11 03:36:07 +00:00
|
|
|
|
fi
|
|
|
|
|
|
2017-06-21 18:59:50 +00:00
|
|
|
|
# Oh-My-ZSH Options below this line
|
|
|
|
|
|
2017-06-22 17:48:10 +00:00
|
|
|
|
# Define Oh-My-ZSH root
|
|
|
|
|
ZSH=$HOME/.oh-my-zsh
|
|
|
|
|
|
2017-06-22 21:48:57 +00:00
|
|
|
|
# Would you like to use another custom folder than $ZSH/custom?
|
2018-05-16 22:37:00 +00:00
|
|
|
|
ZSH_CUSTOM=$_DOTFILES/omz
|
2017-06-22 21:48:57 +00:00
|
|
|
|
|
2016-06-14 19:13:41 +00:00
|
|
|
|
# Theme for Oh-My-ZSH
|
2021-03-31 18:30:28 +00:00
|
|
|
|
#ZSH_THEME="darkblood"
|
|
|
|
|
ZSH_THEME="agnoster"
|
2017-06-21 18:59:50 +00:00
|
|
|
|
|
|
|
|
|
# Uncomment the following line to disable auto-setting terminal title.
|
|
|
|
|
# DISABLE_AUTO_TITLE="true"
|
|
|
|
|
|
|
|
|
|
# Uncomment the following line to enable command auto-correction.
|
|
|
|
|
# ENABLE_CORRECTION="true"
|
|
|
|
|
|
|
|
|
|
# Uncomment the following line to display red dots whilst waiting for completion.
|
|
|
|
|
COMPLETION_WAITING_DOTS="true"
|
|
|
|
|
|
|
|
|
|
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
|
|
|
|
|
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
|
|
|
|
|
# Example format: plugins=(rails git textmate ruby lighthouse)
|
|
|
|
|
# Add wisely, as too many plugins slow down shell startup.
|
2021-03-31 19:25:06 +00:00
|
|
|
|
plugins=(cp \
|
|
|
|
|
git\
|
2019-05-24 17:59:09 +00:00
|
|
|
|
emoji \
|
2021-03-31 19:25:06 +00:00
|
|
|
|
emoji-clock \
|
|
|
|
|
fancy-ctrl-z \
|
2019-05-24 18:11:03 +00:00
|
|
|
|
zsh-syntax-highlighting) # zsh-syntax-highlighting must remain the last plugin
|
2017-06-21 18:59:50 +00:00
|
|
|
|
|
|
|
|
|
# Load oh-my-zsh
|
|
|
|
|
source $ZSH/oh-my-zsh.sh
|