fix to sourcing
This commit is contained in:
+1
-2
@@ -4,8 +4,7 @@ set --global fish_key_bindings fish_default_key_bindings
|
|||||||
if status is-interactive
|
if status is-interactive
|
||||||
# Get distro ID from /etc/os-release
|
# Get distro ID from /etc/os-release
|
||||||
if test -f /etc/os-release
|
if test -f /etc/os-release
|
||||||
set -l os_id (string match -r '^ID=.*' </etc/os-release 2>/dev/null | string split -m1 '=' | string lower)
|
set distro (grep '^ID=' /etc/os-release | cut -d= -f2 | string lower)
|
||||||
set -l distro $os_id[2]
|
|
||||||
else
|
else
|
||||||
set distro unknown
|
set distro unknown
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user