-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinit.fish
52 lines (46 loc) · 2.16 KB
/
init.fish
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
# zephish initialization hook
#
# WARNING: Stuff in this file gets run everytime a new
# shell is created. Limit it to the absolute minimum required.
#
# You can use the following variables in this file:
# * $package package name
# * $path package path
# * $dependencies package dependencies
fish_add_path ~/go/bin ~/.cargo/bin ~/.bin /usr/local/Cellar/apache-spark/1.5.2/bin
# Fix for GPG TTY error
set -gx GPG_TTY (tty)
set -gx EDITOR (which cursor)
switch (uname)
case Darwin
# Hack to ensure python builds will work
# https://github.com/pyenv/pyenv/issues/1219#issuecomment-684140087
set PYTHON_CONFIGURE_OPTS "--with-openssl=(brew --prefix openssl)"
set CFLAGS "-I(brew --prefix zlib)/include -I(brew --prefix sqlite)/include -I(brew --prefix bzip2)/include"
set LDFLAGS "-L(brew --prefix zlib)/lib -L(brew --prefix sqlite)/lib -L(brew --prefix bzip2)/lib"
fish_add_path ~/Code/deno.run/.run ~/Scripts ~/Applications /opt/local/bin
case Linux
set PKG_CONFIG_PATH "/usr/lib/x86_64-linux-gnu/pkgconfig:/usr/local/lib/pkgconfig:/home/linuxbrew/.linuxbrew/lib/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig"
if test -d ~/usr/local/Applications/android-studio/bin
fish_add_path ~/Applications/android-studio/bin
end
if test -d /home/linuxbrew/.linuxbrew
set -gx HOMEBREW_PREFIX "/home/linuxbrew/.linuxbrew"
set -gx HOMEBREW_CELLAR "/home/linuxbrew/.linuxbrew/Cellar"
set -gx HOMEBREW_REPOSITORY "/home/linuxbrew/.linuxbrew/Homebrew"
set -q PATH; or set PATH ''
set -gx PATH "/home/linuxbrew/.linuxbrew/bin" "/home/linuxbrew/.linuxbrew/sbin" $PATH
set -q MANPATH; or set MANPATH ''
set -gx MANPATH "/home/linuxbrew/.linuxbrew/share/man" $MANPATH
set -q INFOPATH; or set INFOPATH ''
set -gx INFOPATH "/home/linuxbrew/.linuxbrew/share/info" $INFOPATH
end
export RUSTDOCFLAGS="-Clink-args=-Wl,-R(pg_config --libdir)"
end
if type -q starship
starship init fish | source
end
if type -q mise
mise activate fish | source
end
eval (ssh-agent -c >/dev/null 2>&1)