Find distro in provision_linux

This commit is contained in:
mitchell 2021-01-19 00:43:37 -05:00
parent feb620260a
commit 6ac114a975
1 changed files with 7 additions and 3 deletions

View File

@ -3,11 +3,15 @@
### Config ### ### Config ###
set -g cmd_func_prefix 'provision' set -g cmd_func_prefix 'provision'
set -g distro
if test -z "$distro" for line in (cat /etc/os-release)
set -g distro 'arch' set -l items (string split --max 1 '=' $line)
if test $items[1] = 'ID'
set distro $items[2]
end
end end
### Commands ### ### Commands ###
# Add, edit, and remove commands freely below. # Add, edit, and remove commands freely below.