-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.fish
60 lines (49 loc) · 1.26 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
bind -M emacs
bind \cH backward-kill-word
# if not test -d $HOME/.local/share/omf
# # Install omf
# echo Installing omf\n\n
# curl -L https://get.oh-my.fish | fish
# # Install bass
# echo Installing bass\n\n
# omf install bass
# end
if test -d $HOME/.nix-profile
bass source $HOME/.nix-profile/etc/profile.d/nix.sh
end
if test -d $HOME/.local/bin
set -gx PATH $HOME/.local/bin $PATH
end
if test (which emacs)
set -x EDITOR "emacsclient -t"
set -x VISUAL "emacsclient -c -a emacs"
end
if test (which firefox)
set -x BROWSER (which firefox)
end
if test -d /usr/local/go
# Set up Golang config, if installed
# with binary
set -x GOFLAGS "-mod=vendor"
set -x GOROOT "/usr/local/go"
set -x GOPATH (go env GOPATH)
begin
contains "$GOROOT/bin" $PATH
or contains "$GOPATH/bin" $PATH
end
or begin
set -gx PATH $GOROOT/bin $GOPATH/bin $PATH
end
end
if test -d $HOME/.cargo
# Simply source stuff into your env
source $HOME/.cargo/env
end
if test (uname -s) = Darwin
# Ugly MacOS specific config
set -gx PATH $HOME/Library/Python/3.7/bin $PATH
end
# Set up auxillary files (presently only vterm config)
if test (uname -s) = Linux
source ~/.config/fish/vterm.fish
end