-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.zshrc
67 lines (51 loc) · 1.68 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
export PATH=$HOME/bin:/usr/local/bin:/$HOME/.local/bin:/usr/local/texlive/2018/bin/x86_64-darwin:$HOME/os161/tools/bin:$PATH
source ~/.aliases
source ~/.functions
if [ -f .secrets ]; then
source .secrets
fi
# Hacky way to check if Alacritty is running
# Both Terminal.app and iTerm.app set this var, Alacritty doesn't
# if [ -z "$TERM_PROGRAM" ]; then
# tmux new-session
# clear
# fi
export CLICOLOR=1
export LSCOLORS=BxFxCxDxBxegedabagaced # For dark background
# AVN
# export PATH="$HOME/.npm-packages/bin:$PATH"
# [[ -s "$HOME/.avn/bin/avn.sh" ]] && source "$HOME/.avn/bin/avn.sh"
# NVM
# export NVM_DIR="$HOME/.nvm"
# [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
# [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" --no-use
# Go
export GOROOT=/usr/local/opt/go/libexec
export GOPATH=$HOME/.go:$HOME/dev/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
# Cargo
export PATH="$HOME/.cargo/bin:$PATH"
# RVM
source ~/.rvm/scripts/rvm
# Theme
source ~/.zsh/themes/surreal.zsh-theme
# source ~/.zsh/themes/palenight.zsh-theme
# source ~/.zsh/themes/gruvbox.zsh-theme
# Case insensitive autocompletion
autoload -U compinit
compinit
setopt completeinword
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}'
# change directories without cd
setopt auto_cd
SAVEHIST=10
HISTFILE=~/.zsh_history
#if command -v tmux>/dev/null; then
# [[ ! $TERM =~ screen ]] && [ -z $TMUX ] && exec tmux
#fi
# zsh-autosuggestions
source ~/.zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
export ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=8"
bindkey '≥' autosuggest-accept # option >
bindkey '÷' autosuggest-execute # option ?
source ~/.zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh