/
dot_zshrc
86 lines (63 loc) · 2.35 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
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
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
# if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
# source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
# fi # Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="powerlevel10k/powerlevel10k"
zstyle ':omz:update' frequency 7
# DISABLE_UNTRACKED_FILES_DIRTY="true"
plugins=(git z zsh-syntax-highlighting)
source $HOME/.zshnvm
source $ZSH/oh-my-zsh.sh
DISABLE_AUTO_TITLE=true
export LANG=en_US.UTF-8
# Preferred editor for local and remote sessions
if [[ -n $SSH_CONNECTION ]]; then
export EDITOR="vim"
else
export EDITOR="nvim"
fi
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
bindkey -s ^f "^utmux-sessionizer\n"
# bindkey -s ^s "^ufont-switcher; kill -SIGUSR1 \$(ps -A | grep 'kitty$' | awk '{print \$1}')\n"
bindkey -s ^s "^ufont-switcher; pkill -SIGUSR1 -a kitty\n"
alias n="nvim"
alias qalc="qalc -s 'exp -1'"
alias gc="git commit --allow-empty-message -m ''"
alias t="tmux"
alias tk="tmux kill-session -t"
alias tl="tmux list-sessions"
alias ta="tmux attach -t"
alias tn="tmux new -s"
alias lls="/bin/ls"
alias ls="exa --icons"
alias ll="exa -l --icons"
alias la="exa -la --icons"
alias tree="exa -T --icons --git-ignore"
alias python="python3"
alias py="python3"
alias pip="pip3"
export GOPATH="$HOME/go"
PATH="$HOME/.local/bin/:$PATH"
# export PATH="$PATH:$(yarn global bin)"
# export PATH="$PATH:$HOME/.yarn/bin"
export PYTHONUSERBASE="$HOME/local/pythonpackage"
export PYTHONPATH="$PYTHONUSERBASE/lib/python/site-packages":$PYTHONPATH
export PATH="$PYTHONUSERBASE/bin":$PATH
export PATH="$HOME/.cargo/bin":$PATH
export PATH=$PATH:$GOPATH/bin
export COLORTERM=truecolor
export FZF_DEFAULT_COMMAND='fd --type f'
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
[[ -n $TMUX ]] && export TERM="xterm-256color"
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
# bun completions
[ -s "/Users/avah/.bun/_bun" ] && source "/Users/avah/.bun/_bun"
# bun
export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"
export PATH=$PATH:/Users/avah/.spicetify
export HOMEBREW_NO_AUTO_UPDATE=1