/
zshrc
38 lines (28 loc) · 957 Bytes
/
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
if type brew &>/dev/null; then
FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}"
source $(brew --prefix)/opt/spaceship/spaceship.zsh
else
source "$HOME/.local/state/zsh/spaceship/spaceship.zsh"
fi
path+=("$HOME/.bin")
source $(brew --prefix asdf)/libexec/asdf.sh
autoload -U compinit && compinit
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}'
export SSH_AUTH_SOCK=~/.1password/agent.sock
export VISUAL="nvim"
export EDITOR="$VISUAL"
export PASSWORD_STORE_ENABLE_EXTENSIONS=true
export HASS_SERVER=$(passage show homeassistant/server)
export HASS_TOKEN=$(passage show homeassistant/token)
setopt AUTO_CD
setopt HIST_IGNORE_ALL_DUPS
setopt HIST_SAVE_NO_DUPS
setopt HIST_REDUCE_BLANKS
setopt INC_APPEND_HISTORY_TIME
setopt EXTENDED_HISTORY
bindkey '\e[A' history-search-backward
bindkey '\e[B' history-search-forward
alias vim=nvim
alias reload="source ~/.zshrc; echo 'sourced ~/.zshrc'"
alias g="git"
alias gs="git status"