From fe351483777c8d053d9f8b584278a4c2b162db0e Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sat, 1 Nov 2025 21:25:17 -0400 Subject: Update install scripts for macos and linux and use sh --- shlib/os.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 shlib/os.sh (limited to 'shlib/os.sh') diff --git a/shlib/os.sh b/shlib/os.sh new file mode 100644 index 0000000..1ac4f04 --- /dev/null +++ b/shlib/os.sh @@ -0,0 +1,15 @@ +# shellcheck shell=sh +[ -n "${DOTFILES_OS_LOADED}" ] && return +readonly DOTFILES_OS_LOADED=1 + +os_print() { + uname +} + +os_is_macos() { + [ "$(os_print)" = "Darwin" ] +} + +os_is_linux() { + [ "$(os_print)" = "Linux" ] +} -- cgit v1.2.3