fish: make getting os-release info local to function
This commit is contained in:
parent
c6c8674a83
commit
db83386473
2 changed files with 7 additions and 1 deletions
|
|
@ -8,7 +8,7 @@ if status is-interactive
|
|||
|
||||
# match prompt symbol to OS logo
|
||||
if test -e /etc/os-release
|
||||
posix-source /etc/os-release
|
||||
posix-source-local /etc/os-release
|
||||
end
|
||||
|
||||
if test -e /System
|
||||
|
|
|
|||
6
stow/.config/fish/functions/posix-source-local.fish
Normal file
6
stow/.config/fish/functions/posix-source-local.fish
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
function posix-source-local
|
||||
for i in (cat $argv)
|
||||
set arr (echo $i |tr = \n)
|
||||
set -lx $arr[1] $arr[2]
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue