-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
106 lines (83 loc) · 2.5 KB
/
.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# Created by newuser for 5.9
# Path
append_path() {
for i in $@; do
PATH="${PATH}:${i}"
done
}
append_home() {
for i in $@; do
PATH="${PATH}:${HOME}/${i}"
done
}
append_path \
/usr/local/bin \
/usr/lib/rstudio \
/var/lib/flatpak/exports/bin \
append_home \
.local/bin \
bin \
.cargo/bin \
.gem/ruby/2.7.0/bin/ \
.local/share/gem/ruby/3.2.0/bin \
go/bin \
.local/share/gem/ruby/3.0.0/bin \
.local/share/nvim/mason/bin/ \
Applications/AppImages/bin/
# Plugins
# Generate new ~/.config/zr.zsh if it does not exist or if ~/.zshrc has been changed
if [[ ! -f ~/.config/zr.zsh ]] || [[ ~/.zshrc -nt ~/.config/zr.zsh ]]; then
zr \
frmendes/geometry \
jedahan/geometry-hydrate \
junegunn/fzf.git/shell/key-bindings.zsh \
sorin-ionescu/prezto.git/modules/history/init.zsh \
junegunn/fzf.git/shell/key-bindings.zsh \
zsh-users/zsh-autosuggestions \
zdharma/fast-syntax-highlighting \
molovo/tipz \
geometry-zsh/geometry \
jedahan/geometry-hydrate \
jedahan/geometry-todo \
geometry-zsh/geometry \
ael-code/zsh-colored-man-pages \
momo-lab/zsh-abbrev-alias \
jedahan/alacritty-completions \
zpm-zsh/ssh \
> ~/.config/zr.zsh
fi
source ~/.config/zr.zsh
# Atuin
if [ $(command -v atuin) ]; then
eval "$(atuin init zsh)"
fi
# Toolbox
# Added by Toolbox App
__jetpack_toolbox_directory="/home/ryan/.local/share/JetBrains/Toolbox/scripts"
if [ -d "${__jetpack_toolbox_directory}" ]; then
export PATH="$PATH:${__jetpack_toolbox_directory}"
fi
os_name=$(grep -oP '(?<=^NAME=).*(?=)' /etc/os-release)
if [ "$os_name" = "Gentoo" ] || [ "$os_name" = "Funtoo" ]; then
export PKG_CONFIG_PATH="/usr/lib64/pkgconfig/"
fi
# PATH
# Nix
# added by Nix installer
if [ -e /home/ryan/.nix-profile/etc/profile.d/nix.sh ]; then
. /home/ryan/.nix-profile/etc/profile.d/nix.sh
fi
export QT_XCB_GL_INTEGRATION=none # Needed for nix QT apps (breaks anki)
# Get usr bin at the front
# NOTE where the fuck is nix getting added???
PATH="/usr/bin:${PATH}"
key_file=$HOME/.local/openai.key
if [ -f "${key_file}" ]; then
read -r OPENAI_API_KEY < "${key_file}"
export OPENAI_API_KEY
fi
# Use fish in place of bash/zsh
# keep this line at the bottom of ~/.bashrc / ~/.zshrc
[ -x /bin/fish ] && [ -z "$IN_NIX_SHELL" ] && SHELL=/bin/fish exec fish
# [ -x /bin/elvish ] && [ -z "$IN_NIX_SHELL" ] && SHELL=/bin/elvish elvish
if [ -f "/home/ryan/.config/fabric/fabric-bootstrap.inc" ]; then . "/home/ryan/.config/fabric/fabric-bootstrap.inc"; fi