diff --git a/config.fish b/config.fish index 3c0348b..14d44a9 100755 --- a/config.fish +++ b/config.fish @@ -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=.*' /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