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:
committed by
Indrajit Raychaudhuri
parent
8a967fc108
commit
5a8bfd5bf5
@@ -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 ]]
|
||||
}
|
||||
|
Reference in New Issue
Block a user