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
|
||||
# Get distro ID from /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 -l distro $os_id[2]
|
||||
set distro (grep '^ID=' /etc/os-release | cut -d= -f2 | string lower)
|
||||
else
|
||||
set distro unknown
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user