From bc3e3780b8f0ace2997eb469243725f99dce7b02 Mon Sep 17 00:00:00 2001 From: punkfairie <23287005+punkfairie@users.noreply.github.com> Date: Sat, 9 Mar 2024 19:01:04 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20fix(fish):=20Reset=20fish=5Fuser?= =?UTF-8?q?=5Fpaths=20on=20shell=20start?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I am anal about the order of paths. --- .config/fish/conf.d/00-init.fish | 14 ++++++++++++++ .config/fish/config.fish | 13 ------------- 2 files changed, 14 insertions(+), 13 deletions(-) create mode 100644 .config/fish/conf.d/00-init.fish diff --git a/.config/fish/conf.d/00-init.fish b/.config/fish/conf.d/00-init.fish new file mode 100644 index 0000000..494b8aa --- /dev/null +++ b/.config/fish/conf.d/00-init.fish @@ -0,0 +1,14 @@ +#!/usr/bin/env fish + +# Base path. +set -Ux fish_user_paths "$HOME/.local/bin" + +# Projects dir. +set -gx HACK "$HOME/hackin" + +# Editor. +set -gx EDITOR nvim +set -gx VISUAL "$EDITOR" + +# Use vi key bindings. +set -g fish_key_bindings fish_vi_key_bindings diff --git a/.config/fish/config.fish b/.config/fish/config.fish index 81d8419..7fe37e2 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -1,18 +1,5 @@ #!/usr/bin/env fish -# Base path. -fish_add_path /usr/local/bin "$HOME/bin" - -# Projects dir. -set -gx HACK "$HOME/hackin" - -# Editor. -set -gx EDITOR nvim -set -gx VISUAL "$EDITOR" - -# Use vi key bindings. -set -g fish_key_bindings fish_vi_key_bindings - # Local environment variables. if test -e "$HOME/.local.env" source "~/.local.env"