Update fish.

This commit is contained in:
Shawn Anderson 2023-05-17 20:41:12 -07:00
parent a6674ca61d
commit 0a08004ae1
4 changed files with 21 additions and 1 deletions

View File

@ -12,3 +12,5 @@ source ~/.config/fish/config/plugins.fish
source ~/.config/fish/config/programs.fish
set -gx GOPATH $HOME/go; set -gx GOROOT $HOME/.go; set -gx PATH $GOPATH/bin $PATH; # g-install: do NOT edit, see https://github.com/stefanmaric/g
export PATH="$PATH:/home/ygg/.foundry/bin"

View File

@ -24,3 +24,9 @@ end
if type rg &> /dev/null
abbr grep rg
end
# Lunarvim
#abbr nvim lvim
#abbr vim lvim
abbr nvim nvim
abbr vim nvim

View File

@ -0,0 +1,11 @@
# e.g. ~/.config/fish/functions/envsource.fish
#
# Usage: envsource <path/to/env>
function envsource
for line in (cat $argv | grep -v '^#')
set item (string split -m 1 '=' $line)
set -gx $item[1] $item[2]
echo "Exported key $item[1]"
end
end

View File

@ -17,7 +17,8 @@ function fish_prompt
set -l normal (set_color normal)
if set -q VIRTUAL_ENV
echo -n -s (set_color white) "🐍(" (basename "$VIRTUAL_ENV") ")" (set_color normal) " "
echo -n -s (set_color white) "(🐍"-(basename "$VIRTUAL_ENV")")" (set_color normal) " "
#echo -n -s "(vf🐍)"
end
set -l cwd (pwd | sed -e "s!^$HOME!~!g")