-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc.example
102 lines (74 loc) · 2.4 KB
/
.zshrc.example
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
autoload -U compinit
compinit
#allow tab completion in the middle of a word
setopt COMPLETE_IN_WORD
## keep background processes at full speed
#setopt NOBGNICE
## restart running processes on exit
#setopt HUP
## history
#setopt APPEND_HISTORY
## for sharing history between zsh processes
#setopt INC_APPEND_HISTORY
#setopt SHARE_HISTORY
## never ever beep ever
#setopt NO_BEEP
## automatically decide when to page a list of completions
#LISTMAX=0
## disable mail checking
#MAILCHECK=0
# autoload -U colors
#colors
export GSK_RENDERER=ngl
# If you come from bash you might have to change your $PATH.
export ZSH=$HOME/.oh-my-zsh
export DOTFILES=$HOME/dotfiles
# just placeholder for nvim chatgpt plugin
export OPENAI_API_KEY="SETME"
# add appimages to path
export APPIMAGE_ROOT="$HOME/AppImages:"
export PATH="$APP_IMAGE_ROOT:$PATH"
# make sure .local/bin is on path
export PATH="$HOME/.local/bin:$PATH"
# make sure mason packages are on PATH
export MASON_PATH=$HOME/.local/share/nvim/mason/bin
export PATH="$PATH:$MASON_PATH"
# make sure npm packages are on path
export NPM_PACKAGES_ROOT="$HOME/.local/.npm-global"
export NPM_PACKAGES="$NPM_PACKAGES_ROOT/bin"
export PATH="$NPM_PACKAGES:$PATH"
export PYFLYBY_PATH="$HOME/dotfiles/pyflyby/.pyflyby"
export EDITOR=nvim
export FZF_DEFAULT_COMMAND='ag --hidden --ignore .git -g ""'
export ZSH_DISABLE_COMPFIX="true"
# ZSH_THEME="robbyrussell"
# ZSH_THEME=random
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
# ZSH_THEME_RANDOM_QUIET=true
export ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#ffff99,bg=italic,underline"
export K9S_CONFIG_DIR=$HOME/.config/k9s
plugins=(dotenv zsh-autosuggestions)
source $ZSH/oh-my-zsh.sh
# source ~/.zprofile
# You may need to manually set your language environment
#export LANG=en_US.UTF-8
#export LC_ALL=en_US.UTF-8
# starship
eval "$(starship init zsh)"
# direnv
eval "$(direnv hook zsh)"
# fzf
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
bindkey '^e' edit-command-line
# when sourcing zshrc make sure PATH variables aren't duplicated
eval "typeset -U path"
# gitignore
function gi() { curl -sLw n https://www.toptal.com/developers/gitignore/api/$@ ;}
# gitignored local aliases primarily for sensitive things at work
if [ -e "$HOME/.alias.local" ]; then
source $HOME/.alias.local
fi
# completion scripts
source $HOME/dotfiles/zsh/.zsh.completion/.kind
source $HOME/dotfiles/zsh/.zsh.completion/.pixi
eval "$(atuin init zsh --disable-up-arrow)"