-
Notifications
You must be signed in to change notification settings - Fork 0
/
rc.zsh
74 lines (56 loc) · 1.72 KB
/
rc.zsh
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
alias ls=exa
alias cat=bat
alias sl=ls
alias v=nvim
alias lg='HUSKY=0 lazygit'
alias vimdiff="nvim -d"
alias repo='__D=`ghq list | fzf` && cd "$HOME/repo/$__D"'
alias temp='mkdir -p /tmp/ktmp && __D=`mktemp -d /tmp/ktmp/XXX` && cd "$__D"'
alias gitd='DFT_DISPLAY=inline GIT_EXTERNAL_DIFF=difft git'
alias airplane='rfkill block all'
alias unairplane='rfkill unblock all'
alias npm='corepack npm'
alias yarn='corepack yarn'
alias pnpm='corepack pnpm'
setopt nomatch \
correct \
automenu \
list_packed \
extendedglob \
interactive_comments
unsetopt beep
zstyle ':completion:*' menu select=5 # highlight selection in menu
export BAT_THEME="Solarized (dark)"
export DOCKER_BUILDKIT=1
export COMPOSE_DOCKER_CLI_BUILD=1
export RUST_BACKTRACE=1
export EDITOR="nvim"
export VISUAL="nvim"
export MANPAGER='nvim +Man!'
export MANWIDTH=999
export RUSTC_WRAPPER="sccache"
export PATH="$HOME/.local/bin:$HOME/go/bin:$HOME/.cargo/bin:$PATH"
export PATH="$HOME/.cabal/bin:$HOME/.ghcup/bin:$PATH"
export GPG_TTY=$(tty)
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
export NODE_OPTIONS="--stack-trace-limit=1000"
gpgconf --launch gpg-agent
if [[ ! -d ~/.tmux/plugins/tpm ]]; then
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
fi
if [[ ! -f ~/.zr.zsh ]] || [[ ~/.zshrc.shared -nt ~/.zr.zsh ]]; then
zr kawaemon/zsh-vi-mode \
zsh-users/zsh-autosuggestions \
zsh-users/zsh-syntax-highlighting \
junegunn/fzf.git/shell/key-bindings.zsh \
> ~/.zr.zsh
zcompile ~/.zr.zsh
fi
source ~/.zr.zsh
eval "$(mise activate zsh)"
# automatically called by .zr.zsh
# autoload -U compinit && compinit
eval "$(starship init zsh)"
if [[ -z "${TMUX}" ]]; then
tmux
fi