2021-11-03 12:01:43 -05:00
|
|
|
source (dirname (status --current-filename))/paths.fish
|
2020-01-16 17:01:59 -06:00
|
|
|
|
2021-03-06 22:07:30 -06:00
|
|
|
for s in $ENV_PATH/*/config.d.fish
|
|
|
|
source $s (dirname $s)
|
|
|
|
end
|
|
|
|
|
2020-01-16 17:01:59 -06:00
|
|
|
status --is-interactive || exit
|
|
|
|
|
2021-11-03 12:01:43 -05:00
|
|
|
for f in vars colors prompt functions key-bindings
|
2021-03-03 01:05:58 -06:00
|
|
|
source $FISH_PATH/$f.fish
|
2020-01-20 14:01:06 -06:00
|
|
|
end
|
2021-03-06 22:07:30 -06:00
|
|
|
|
2023-06-06 00:57:28 -05:00
|
|
|
if has_command rtx
|
|
|
|
rtx activate fish | source
|
|
|
|
else if has_command brew && test -f (brew --prefix asdf)/libexec/asdf.fish
|
2022-05-18 01:27:19 -05:00
|
|
|
set --universal --export ASDF_DIR (brew --prefix asdf)
|
2022-05-10 13:23:32 -05:00
|
|
|
source (brew --prefix asdf)/libexec/asdf.fish
|
2021-05-14 15:13:43 -05:00
|
|
|
else if test -f $HOME/.asdf/asdf.fish
|
|
|
|
source $HOME/.asdf/asdf.fish
|
|
|
|
else if test -f /opt/asdf-vm/asdf.fish
|
|
|
|
source /opt/asdf-vm/asdf.fish
|
|
|
|
end
|
|
|
|
|
2022-03-16 00:16:55 -05:00
|
|
|
if test -f /usr/share/password-store/extensions/otp.bash
|
|
|
|
source $FISH_PATH/pass-otp-completions.fish
|
|
|
|
end
|
|
|
|
|
|
|
|
if test -f /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
|
|
|
|
set nix_profiles /nix/var/nix/profiles/default $HOME/.nix-profile
|
|
|
|
set --export --universal NIX_PROFILES "$nix_profiles"
|
|
|
|
|
|
|
|
if set -q NIX_SSL_CERT_FILE
|
|
|
|
:
|
|
|
|
elif test -e /etc/ssl/certs/ca-certificates.crt
|
|
|
|
set --export --universal NIX_SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt
|
|
|
|
else
|
|
|
|
for p in (string split $NIX_PROFILES)
|
|
|
|
test -e $p/etc/ssl/certs/ca-bundle.crt && \
|
|
|
|
set --export --universal NIX_SSL_CERT_FILE=$p/etc/ssl/certs/ca-bundle.crt
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
set --prepend --export --global fish_user_paths $HOME/.nix-profile/bin /nix/var/nix/profiles/default/bin
|
|
|
|
end
|
|
|
|
|
2022-12-13 15:34:46 -06:00
|
|
|
if set -q KITTY_INSTALLATION_DIR
|
|
|
|
set --global KITTY_SHELL_INTEGRATION enabled
|
|
|
|
source "$KITTY_INSTALLATION_DIR/shell-integration/fish/vendor_conf.d/kitty-shell-integration.fish"
|
|
|
|
set --prepend fish_complete_path "$KITTY_INSTALLATION_DIR/shell-integration/fish/vendor_completions.d"
|
|
|
|
end
|
|
|
|
|
2022-10-17 13:34:30 -05:00
|
|
|
if has_command nnn
|
|
|
|
source $DOTFILES_PATH/common/nnn/config.fish
|
|
|
|
end
|
|
|
|
|
2022-05-18 01:27:19 -05:00
|
|
|
test $PWD = $HOME && begin
|
|
|
|
cd $NICE_HOME || cd
|
|
|
|
end
|
2022-12-13 13:41:40 -06:00
|
|
|
|
|
|
|
# if status is-interactive
|
|
|
|
# eval (zellij setup --generate-auto-start fish | string collect)
|
|
|
|
# end
|
|
|
|
|
2023-01-23 09:12:07 -06:00
|
|
|
if status is-interactive; and not set -q TMUX; and not string match '/dev/tty*' (tty)
|
2023-05-09 12:05:12 -05:00
|
|
|
true
|
|
|
|
# tmux att -t default || tmux new -s default
|
2022-12-13 13:41:40 -06:00
|
|
|
end
|