Update fish.
This commit is contained in:
parent
a6674ca61d
commit
0a08004ae1
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in New Issue