blob: 2f448950de3042ef11ba4e008585d8a3c819555f (
plain)
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
|
#
# getchoo's config.fish
#
function set_envvars
# source bash profile
bash2env source "$HOME/.config/shell/profile"
# add user bin directory to path
if test -d "$HOME/.local/bin"
fish_add_path "$HOME/.local/bin"
end
end
function load_plugins
if not test -f "$XDG_CONFIG_HOME/fish/functions/fisher.fish"
echo 'bootstrapping fisher'
curl -sL https://git.io/fisher | source && fisher update
end
if command -q zoxide
zoxide init fish | source
end
end
if status is-login
set_envvars
else if status is-interactive
load_plugins
end
|