forked from deiga/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
zshrc
executable file
·69 lines (50 loc) · 1.41 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
#!/usr/bin/bash
#echo 'zshrc' $0 # Debug
# Profiling
# zmodload zsh/zprof
HISTFILE=~/.histfile
HISTSIZE=10000
SAVEHIST=10000
setopt appendhistory autocd nomatch
# zle uses vi mode
bindkey -v
zstyle :omz:plugins:ssh-agent agent-forwarding on
# zstyle :omz:plugins:ssh-agent identities keys/github_ed25519 keys/bitbucket_ed25519 keys/kapsi_ed25519 keys/gitlab_ed25519 keys/heroku_ed25519
source $HOME/.zsh/plugins/antigen.zsh
# Set editor
set -o vi
# Colors
autoload -U colors && colors
setopt prompt_subst
eval $(dircolors ~/.dir_colors)
# ZSH Hooks
autoload -U add-zsh-hook
# Disable correct
if [ -f ~/.zsh_nocorrect ]; then
while read -r COMMAND; do
alias $COMMAND="nocorrect $COMMAND"
done <~/.zsh_nocorrect
fi
# all of our zsh files
typeset -U config_files
config_files=(~/.zsh/*.zsh)
# load the path files
for file in "${config_files[@]}"; do
source "$file"
done
init_files=(~/.zsh/init/*.*sh)
for file in "${init_files[@]}"; do
source "$file" || true
done
setopt extendedglob
tmux list-sessions 2>/dev/null
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"
zstyle ':completion:*' completer _expand _complete _ignored _approximate
zstyle :compinstall filename '/Users/timosand/.zshrc'
if command brew >/dev/null 2>&1; then
fpath+=$(brew --prefix)/share/zsh/site-functions
fi
fpath+=~/.zsh/Completion
autoload -Uz compinit && compinit
# Profiling end
# zprof