diff options
| author | Eugene Triguba <hello@eugenetriguba.com> | 2025-12-20 10:53:14 -0500 |
|---|---|---|
| committer | Eugene Triguba <hello@eugenetriguba.com> | 2025-12-20 10:54:02 -0500 |
| commit | 7b6dbb921650e2a52929f025b67be57609fda6d4 (patch) | |
| tree | 895416312698cfe4ac61d4eed0f071d7743c0214 /shlib/os.sh | |
| parent | Remove openbsd conditional in zsh (diff) | |
| download | dotfiles-7b6dbb921650e2a52929f025b67be57609fda6d4.zip | |
Rework dotfiles to *only* contain dotfiles
Diffstat (limited to 'shlib/os.sh')
| -rw-r--r-- | shlib/os.sh | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/shlib/os.sh b/shlib/os.sh deleted file mode 100644 index 4fb7989..0000000 --- a/shlib/os.sh +++ /dev/null @@ -1,24 +0,0 @@ -# shellcheck shell=sh -[ -n "${DOTFILES_OS_LOADED}" ] && return -readonly DOTFILES_OS_LOADED=1 - -os_print() { - uname -} - -os_is_macos() { - [ "$(os_print)" = "Darwin" ] -} - -os_is_openbsd() { - [ "$(os_print)" = "OpenBSD" ] -} - -os_is_linux() { - [ "$(os_print)" = "Linux" ] -} - -os_is_linux_debian() { - _linux_debian_id=$(. /etc/os-release && echo $ID) - [ os_is_linux ] && [ "$_linux_debian_id" = "debian" ] -} |