1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2025-10-14 15:49:09 +00:00

helper: Update docs for OS detection helpers

This commit is contained in:
Indrajit Raychaudhuri
2021-05-02 01:00:06 -05:00
committed by Indrajit Raychaudhuri
parent 8a967fc108
commit 5a8bfd5bf5
2 changed files with 10 additions and 5 deletions

View File

@@ -30,27 +30,27 @@ function coalesce {
return 1
}
# is true on MacOS Darwin
# Checks if running on macOS Darwin.
function is-darwin {
[[ "$OSTYPE" == darwin* ]]
}
# is true on Linux's
# Checks if running on Linux.
function is-linux {
[[ "$OSTYPE" == linux* ]]
}
# is true on BSD's
# Checks if running on BSD.
function is-bsd {
[[ "$OSTYPE" == *bsd* ]]
}
# is true on Cygwin (Windows)
# Checks if running on Cygwin (Windows).
function is-cygwin {
[[ "$OSTYPE" == cygwin* ]]
}
# is true on termux (Android)
# Checks if running on termux (Android).
function is-termux {
[[ "$OSTYPE" == linux-android ]]
}