-
Notifications
You must be signed in to change notification settings - Fork 1
/
dot_zshrc
49 lines (38 loc) · 1.54 KB
/
dot_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
export GOPATH=$HOME/go
export PATH=$PATH:$(go env GOPATH)/bin
export PATH=$HOME/bin:/usr/local/bin:$PATH
export NVM_DIR="$HOME/.nvm"
export EDITOR=nvim
source ~/.config/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source ~/.config/zsh/avit-it2.zsh-theme
source ~/.git-prompt.sh
zstyle -e ':completion::*:*:*:hosts' hosts 'reply=(${=${${(f)"$(cat {/etc/ssh_,~/.ssh/known_}hosts(|2)(N) /dev/null)"}%%[# ]*}//,/ })'
bindkey -e
bindkey '^U' backward-kill-line
bindkey "^[b" backward-word
bindkey "^[f" forward-word
bindkey '^P' history-beginning-search-backward
bindkey '^N' history-beginning-search-forward
alias vim='nvim'
# Remove anoying regex matching
unsetopt NOMATCH
autoload run-help
autoload bashcompinit
bashcompinit
if [ "$(command -v chruby)" ]; then
source /opt/homebrew/opt/chruby/share/chruby/chruby.sh
source /opt/homebrew/opt/chruby/share/chruby/auto.sh
fi
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
[ -f venv/bin/activate ] && source venv/bin/activate
[ -f ~/.iterm2_shell_integration.zsh ] && source ~/.iterm2_shell_integration.zsh
if [[ $TERM = dumb ]]; then
unset zle_backeted_paste
fi
# Commenting out because it's slow
# [ -s "/usr/local/opt/nvm/nvm.sh" ] && . "/usr/local/opt/nvm/nvm.sh" # This loads nvm
# [ -s "/usr/local/opt/nvm/etc/bash_completion.d/nvm" ] && . "/usr/local/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion
# export PATH="/usr/local/opt/openjdk/bin:$PATH"
alias '??'='github-copilot-cli what-the-shell'
alias 'git?'='github-copilot-cli git-assist'
alias 'gh?'='github-copilot-cli gh-assist'