-
Notifications
You must be signed in to change notification settings - Fork 5
/
zshrc
executable file
·74 lines (63 loc) · 1.73 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
70
71
72
73
74
#!/usr/bin/env zsh
####################################################
# Jake Teton-Landis's ZSHRC #
# <[email protected]> Winter 2012 #
####################################################
# export all of these settings
setopt ALL_EXPORT
MANSECT=1:1p:8:2:3:3p:4:5:6:7:9:0p:n:l:o
TZ="America/Los_Angeles"
HOSTNAME="$(hostname -f)"
PAGER='less'
if which nvim > /dev/null 2>&1 ; then
EDITOR='nvim'
else
EDITOR='vim'
fi
# set SVN_EDITOR only if unset
[ -z "$SVN_EDITOR" ] && SVN_EDITOR="$EDITOR"
VISUAL="$EDITOR"
#LANGUAGE=
LC_ALL='en_US.UTF-8'
DOTFILES="$HOME/.dotfiles"
ZSH_FILES="$DOTFILES/zsh"
####
# User Scripts Directory in Path
####
PATH="$HOME/bin:$PATH"
#### History Settings
HISTFILE="${ZSH_FILES}/history/global.zhistory"
HISTSIZE=1300000
SAVEHIST=1000000
setopt NO_ALL_EXPORT
setopt hist_ignore_dups
setopt NO_hist_verify # enable to review `sudo !!` before executing
setopt inc_append_history
setopt extended_history
setopt hist_expire_dups_first
setopt hist_ignore_space
# annoying when different terminals do different tasks
setopt NO_share_history
####
# Misc Options
####
setopt extended_glob
setopt long_list_jobs
# deal with Gnome Terminal being silly
if [[ $COLORTERM == "gnome-terminal" ]] ; then
export TERM="xterm-256color"
fi
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
####
# Zshrc.d - most other config
# 00 - 09: functions
# 10 - 19: UI. title, prompt, keybindings, etc
# 20 - 29: Aliases.
# 99 : jokes and deprecated
####
for config in "$ZSH_FILES/rc.d"/* ; do
source "$config"
done
#### Host Settings
[[ -f "$ZSH_FILES/hosts/$HOSTNAME" ]] && source "$ZSH_FILES/hosts/$HOSTNAME"
[[ -f "$ZSH_FILES/hosts/$HOSTNAME.zsh" ]] && source "$ZSH_FILES/hosts/$HOSTNAME.zsh"