-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot_zshrc
More file actions
92 lines (77 loc) · 2.52 KB
/
dot_zshrc
File metadata and controls
92 lines (77 loc) · 2.52 KB
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
export PATH=$HOME/bin/:$HOME/.cargo/bin:$HOME/.local/share/gem/ruby/3.0.0/bin:$HOME/.pyenv/bin:$HOME/.poetry/bin:$HOME/.local/bin:$PATH
export ROCM_PATH=/opt/rocm
export HIP_PATH=$ROCM_PATH/hip
export PATH="$ROCM_PATH/bin:$HIP_PATH/bin:$PATH"
export LD_LIBRARY_PATH="$ROCM_PATH/lib:$HIP_PATH/lib:$LD_LIBRARY_PATH"
export XDG_CURRENT_DESKTOP=sway
export MANPAGER='nvim +Man!'
export NVM_LAZY_LOAD=true
export NVM_COMPLETION=true
export XDG_SESSION_TYPE=wayland
#export GDK_BACKEND=wayland
export EDITOR=nvim
export MOZ_ENABLE_WAYLAND=1
export MOZ_DBUS_REMOTE=1
export QT_FONT_DPI=96
export QT_QPA_PLATFORM=wayland
export QT_WAYLAND_FORCE_DPI=physical
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
export PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring
#export SDL_VIDEODRIVER=x11
export QT_DEBUG_PLUGINS=1
export COLORTERM=truecolor
export TERM_PROGRAM="alacritty"
export TERM_PROGRAM_VERSION=$(alacritty --version | awk '{print $2}')
source ~/bin/zshzplug # zplug plugin manager
# Essential for Alt+C, Ctrl+R, Ctrl+T functionality
if [[ -f /usr/share/fzf/key-bindings.zsh ]]; then
source /usr/share/fzf/key-bindings.zsh
fi
if [[ -f /usr/share/fzf/completion.zsh ]]; then
source /usr/share/fzf/completion.zsh
fi
source ~/bin/zshaliases # aliases
source ~/bin/zshfzfrc # fzf functions
source /usr/share/nvm/init-nvm.sh
autoload -U add-zsh-hook
# Auto-load .nvmrc when changing directories
load-nvmrc() {
if [[ -f .nvmrc && -r .nvmrc ]]; then
nvm use
elif [[ $(nvm version) != $(nvm version default) ]]; then
echo "Reverting to nvm default version"
nvm use default
fi
}
add-zsh-hook chpwd load-nvmrc
load-nvmrc # Load on shell start
do-ls() {emulate -L zsh; eza -ah --icons=always --group-directories-first;}
function yy() {
local tmp="$(mktemp -t "yazi-cwd.XXXXXX")"
yazi "$@" --cwd-file="$tmp"
if cwd="$(bat -- "$tmp")" && [ -n "$cwd" ] && [ "$cwd" != "$PWD" ]; then
builtin cd -- "$cwd"
fi
rm -f -- "$tmp"
}
bindkey -s "^\\" 'yy\n'
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
# add do-ls to chpwd hook
add-zsh-hook chpwd do-ls
eval "$(atuin init zsh)"
eval "$(zoxide init zsh)"
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/opt/miniconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/opt/miniconda3/etc/profile.d/conda.sh" ]; then
. "/opt/miniconda3/etc/profile.d/conda.sh"
else
export PATH="/opt/miniconda3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<