-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_zshrc
77 lines (64 loc) · 2.59 KB
/
dot_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
#!/usr/bin/env zsh
clear
# History setup
HISTFILE=$HOME/.zsh_history
HISTSIZE=100000
SAVEHIST=$HISTSIZ
setopt hist_ignore_all_dups # remove older duplicate entries from history
setopt hist_reduce_blanks # remove superfluous blanks from history items
setopt inc_append_history # save history entries as soon as they are entered
setopt share_history # share history between different instances of the shell
setopt auto_cd # cd by typing directory name if it's not a command
setopt correct # autocorrect
setopt correct_all # autocorrect commands
setopt auto_list # automatically list choices on ambiguous completion
setopt auto_menu # automatically use menu completion
setopt always_to_end # move cursor to end if word had one match
# Completion system
autoload -Uz compinit && compinit
autoload bashcompinit && bashcompinit # load bashcompinit for some old bash completions
###############################################################################
# INSTALL DEPS
###############################################################################
if [[ ! -f ~/.zsh/antigen.zsh ]]; then
curl -L git.io/antigen > ~/.zsh/antigen.zsh
fi
if [[ ! -f ~/.extra ]]; then
touch ~/.extra
fi
###############################################################################
# PLUGINS && SUCH
###############################################################################
source $HOME/.zsh/antigen.zsh
antigen bundle zpm-zsh/ls
###############################################################################
# EXPORTS
###############################################################################
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
export EDITOR=nano
export VISUAL=$EDITOR
export DROPBOX=$HOME/Dropbox
export DOTFILES=$HOME/.dotfiles
export PROJECTS=$HOME/@Projects
export BEYHIVE=$PROJECTS/@beyhive
export WIP=$PROJECTS/@wip
###############################################################################
# Load the shell dotfiles, and then some:
###############################################################################
if [[ ! -f ~/.zsh/yonce/yonce.zsh ]]
antigen theme geometry-zsh/geometry
then
else
source $HOME/.zsh/yonce/yonce.zsh
fi
source $HOME/.path
source $HOME/.aliases
source $HOME/.functions
source $HOME/.extra
antigen apply
###############################################################################
# PDE SETUP || 2022-02-11T02:04:21-0800
###############################################################################
/usr/bin/ssh-add -A >/dev/null 2>&1