summaryrefslogtreecommitdiff
path: root/.config/fish/config.fish
blob: 35da1bb3642ebca2d1077a5401e28acab88c9a82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#
# getchoo's config.fish
#


# add ~/.local/bin to path if the directory exists
function add_local_bin
  set -f dir "$HOME/.local/bin"
  if test -e $dir; and not contains $dir $PATH
    fish_add_path "$HOME/.local/bin"
  end
end
add_local_bin

# default programs
set -gx VISUAL nvim
set -gx EDITOR nvim
set -gx GPG_TTY (tty)

# paths
set -gx CARGO_HOME "$HOME/.local/share/cargo"
set -gx RUSTUP_HOME "$HOME/.local/share/rustup"