🩹 fix(fish): Reset fish_user_paths on shell start
I am anal about the order of paths.
This commit is contained in:
parent
8eef9e2c58
commit
bc3e3780b8
2 changed files with 14 additions and 13 deletions
14
.config/fish/conf.d/00-init.fish
Normal file
14
.config/fish/conf.d/00-init.fish
Normal file
|
@ -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
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue