Add fish module to nix
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
|
||||
# ============
|
||||
# Basics, etc…
|
||||
# ============
|
||||
@@ -8,10 +9,8 @@ set -g -x ALTERNATE_EDITOR "vim"
|
||||
set -g -x TERMINAL "kitty"
|
||||
|
||||
# Setup PATH
|
||||
ensure_path ~/.dotfiles/bin
|
||||
ensure_path ~/.local/bin
|
||||
ensure_path ~/bin
|
||||
ensure_path ~/.emacs.d/bin
|
||||
fish_add_path --path ~/.dotfiles/bin ~/.local/bin ~/bin
|
||||
fish_add_path ~/.emacs.d/bin
|
||||
|
||||
# Disable Fish greeting banner
|
||||
set --universal fish_greeting
|
||||
@@ -42,8 +41,3 @@ if test "$TERM" = "dumb"
|
||||
function fish_greeting; end
|
||||
function fish_title; end
|
||||
end
|
||||
|
||||
# Starship prompt
|
||||
if which starship &> /dev/null
|
||||
starship init fish | source
|
||||
end
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
function ensure_path --description "Ensures directories are in $PATH"
|
||||
for pathdir in $argv
|
||||
if not set -l index (contains -i $pathdir $PATH)
|
||||
set -g -x PATH $pathdir $PATH
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user