summaryrefslogtreecommitdiff
path: root/.config/fish/config.fish
blob: c727a7276341f862c2c9546a1c1e96292b75f49f (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
31
32
33
34
#
# 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 functions -q fisher
    echo 'bootstrapping fisher'
    curl -sL https://git.io/fisher | source && fisher update
  end

  if command -q zoxide
    zoxide init fish | source
  end

  if command -q starship
    starship init fish | source
  end
end

if status is-interactive
  load_plugins
else
  set_envvars
end