dotfiles/files/fish/config.fish

48 lines
1.1 KiB
Fish
Raw Normal View History

2024-02-12 09:40:21 +00:00
set -g fish_user_paths /usr/local/sbin $fish_user_paths
2021-11-04 10:35:52 +00:00
set -x PIPENV_VENV_IN_PROJECT true
2023-03-15 14:12:07 +00:00
set -x POETRY_VIRTUALENVS_IN_PROJECT true
2021-11-04 10:35:52 +00:00
2023-02-23 19:03:23 +00:00
if [ -x /opt/homebrew/bin/brew ]
2024-02-12 09:40:21 +00:00
eval "$(/opt/homebrew/bin/brew shellenv)"
2023-02-23 19:03:23 +00:00
end
2023-01-07 09:22:21 +00:00
2021-11-04 10:35:52 +00:00
export GOPATH="$HOME/.go"
2021-11-13 15:10:26 +00:00
if type -q brew
2024-02-12 09:40:21 +00:00
export GOROOT=(brew --prefix go)"/libexec"
2021-11-05 15:09:08 +00:00
end
2023-03-09 10:37:34 +00:00
export PATH="$PATH:$GOPATH/bin:$GOROOT/bin"
2021-11-04 10:35:52 +00:00
# The next line updates PATH for the Google Cloud SDK.
2024-02-12 09:40:21 +00:00
if [ -f '$HOME/Desktop/google-cloud-sdk/path.fish.inc' ]
. '$HOME/Desktop/google-cloud-sdk/path.fish.inc'
end
2021-11-05 16:33:48 +00:00
# tabtab source for packages
# uninstall by removing these lines
[ -f ~/.config/tabtab/fish/__tabtab.fish ]; and . ~/.config/tabtab/fish/__tabtab.fish; or true
2022-05-28 11:41:22 +00:00
2023-03-21 18:15:41 +00:00
# Rust
set -gx PATH "$HOME/.cargo/bin" $PATH
2023-03-06 14:12:40 +00:00
# Node
2023-03-09 10:37:34 +00:00
if type -q fnm
2024-02-12 09:40:21 +00:00
fnm env --use-on-cd | source
2023-03-09 01:43:49 +00:00
end
2023-03-06 14:12:40 +00:00
2023-03-09 10:37:34 +00:00
if type -q direnv
2024-02-12 09:40:21 +00:00
direnv hook fish | source
2023-03-09 10:37:34 +00:00
end
2023-03-06 14:12:40 +00:00
# Theme
2023-03-09 10:37:34 +00:00
if type -q oh-my-posh
2024-02-12 09:40:21 +00:00
oh-my-posh init fish --config ~/.config/omp/main.omp.yaml | source
2023-03-09 10:37:34 +00:00
end
2023-10-30 09:03:50 +00:00
2024-02-12 09:40:21 +00:00
# rye
set -Ua fish_user_paths "$HOME/.rye/shims"
2023-10-30 09:03:50 +00:00
# bun
set --export BUN_INSTALL "$HOME/.bun"
set --export PATH $BUN_INSTALL/bin $PATH