-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
78 lines (59 loc) · 2.31 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
75
76
77
78
# Fig pre block. Keep at the top of this file.
[[ -f "$HOME/.fig/shell/zshrc.pre.zsh" ]] && builtin source "$HOME/.fig/shell/zshrc.pre.zsh"
if [[ $OSTYPE == 'darwin'* ]]; then
# https://superuser.com/questions/544989/does-tmux-sort-the-path-variable
# Clear PATH before path_helper executes; will prevent it from prepending the default
# PATH to your (previously) chosen PATH
if [ -f /etc/profile ]; then
PATH=""
source /etc/profile
fi
export PATH="/Applications/SnowSQL.app/Contents/MacOS:$PATH"
export PATH="/usr/bin:$PATH"
export PATH="/bin:$PATH"
export PATH="/usr/sbin:$PATH"
export PATH="/sbin:$PATH"
export PATH="/usr/local:$PATH"
export PATH="/usr/local/bin:$PATH"
export PATH="/usr/local/sbin:$PATH"
eval $(/opt/homebrew/bin/brew shellenv)
fpath+=("$(brew --prefix)/share/zsh/site-functions")
fi
DISABLE_MAGIC_FUNCTIONS=true
setopt AUTO_CD
# Set key binding
bindkey "^A" vi-beginning-of-line
bindkey "^E" vi-end-of-line
# Enable globbing
setopt extended_glob
# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="false"
# Disable case-sensitive globbing
unsetopt CASE_GLOB
# Uncomment the following line to use hyphen-insensitive completion.
# Case-sensitive completion must be off. _ and - will be interchangeable.
HYPHEN_INSENSITIVE="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"
# stamp shown in the history command output.
# You can set one of the optional three formats:
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# or set a custom format using the strftime function format specifications,
# see 'man strftime' for details.
HIST_STAMPS="yyyy-mm-dd"
# Set default editor to vim
export EDITOR=$(which vim)
# Source aliases
source $HOME/.aliases
# Set all path entries to unique
# https://til.hashrocket.com/posts/7evpdebn7g-remove-duplicates-in-zsh-path
typeset -aU path
# Do not correct variables to dotfile versions
CORRECT_IGNORE_FILE=".*"
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=cyan'
# Add GPG key
export GPG_TTY=$(tty)
# Fig post block. Keep at the bottom of this file.
[[ -f "$HOME/.fig/shell/zshrc.post.zsh" ]] && builtin source "$HOME/.fig/shell/zshrc.post.zsh"