-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.fish
95 lines (73 loc) · 2.83 KB
/
config.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
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
stty -echo
set fish_greeting ""
set -gx LC_TIME 'pt_BR.UTF-8'
set -gx LC_MESSAGES 'en_US.UTF-8'
set -gx LC_ALL en_US.UTF-8
set -gx LANG en_US.UTF-8
set -x current_os (uname -s)
# Android
if test $current_os = "Linux"
set -gx ANDROID_HOME /usr/lib/android-sdk
else
set -gx ANDROID_HOME ~/Library/Android/sdk
set -gx ANDROID_SDK_HOME ~/Library/Android/sdk
set -gx ANDROID_NDK_HOME /opt/homebrew/share/android-ndk
end
# Sets java home
# set -gx JAVA_HOME "/System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands"
if test $current_os = "Linux"
set linuxbrew /home/linuxbrew/.linuxbrew/bin /home/linuxbrew/.linuxbrew/sbin
set -gx PKG_CONFIG_PATH /usr/share/pkgconfig,/usr/lib/pkgconfig,/usr/lib/x86_64-linux-gnu/pkgconfig
else
set linuxbrew ''
set -gx PKG_CONFIG_PATH /opt/homebrew/opt/libpq/lib/pkgconfig,/opt/homebrew/lib/pkgconfig
end
### PATH ###
set local_bin $HOME/.local/bin
set cargo_env $HOME/.cargo/env
set cargo_bin $HOME/.cargo/bin
set homebrew /opt/homebrew/bin /opt/homebrew/sbin /opt/homebrew/bin
set node_modules /usr/local/lib/node_modules
set rbenv_bin $HOME/.rbenv/bin
set rbenv_shims $HOME/.rbenv/shims
set default_path /usr/bin /opt/homebrew/bin /usr/sbin /bin /sbin /usr/local/bin
set android_emulator $ANDROID_HOME/emulator
set android_platform_tools $ANDROID_HOME/platform-tools
set android_tools $ANDROID_HOME/tools
set fastlane $HOME/.fastlane/bin
set qt $HOME/Qt5.5.0/5.5/clang_64/bin
set libpq /opt/homebrew/opt/libpq/bin
set gnubin /opt/homebrew/opt/inetutils/libexec/gnubin
set openssl /opt/homebrew/opt/openssl@1.1/bin
# FIXME: The ghostscript bins below is temporary
set ghostscript $HOME/Downloads/ghostscript-9.26/bin
set llvm /opt/homebrew/opt/llvm/bin
set -gx GOPATH $HOME/go
set -gx GOBIN $GOPATH/bin
set -gx PATH $local_bin $ghostscript $llvm $homebrew $qt $openssl $gnubin $libpq $default_path $node_modules $rbenv_bin $rbenv_shims $android_emulator $android_tools $android_platform_tools $fastlane $cargo_env $cargo_bin $GOPATH $GOBIN $linuxbrew
### Ruby (rbenv) ###
rbenv rehash >/dev/null 2>&1
### Rbenv ###
status --is-interactive; and source (rbenv init -|psub)
# Default editor
set -U EDITOR nvim
set -gx GPG_TTY (tty)
# fzf
set -gx FZF_DEFAULT_OPTS $FZF_DEFAULT_OPTS '
--height=50% --min-height=15 --reverse
--color fg:#D8DEE9,bg:#2E3440,hl:#A3BE8C,fg+:#D8DEE9,bg+:#2E3440,hl+:#A3BE8C
--color pointer:#B48DAC,info:#4C566A,spinner:#4C566A,header:#4C566A,prompt:#81A1C1,marker:#a3be8b
'
set -gx FZF_DEFAULT_COMMAND 'rg --files --no-ignore --hidden --follow --glob "!.git/*"'
set -gx FZF_CTRL_T_COMMAND $FZF_DEFAULT_COMMAND
source "$HOME/.config/fish/aliases.fish"
source "$HOME/.config/fish/functions/utils.fish"
set -gx YARN_GLOBAL_FOLDER $FNM_MULTISHELL_PATH/yarn-global
set -gx YARN_PREFIX $FNM_MULTISHELL_PATH
if type -q fnm
fnm env | source
end
if type -q direnv
direnv hook fish | source
end
stty echo