mirror of
https://github.com/IlanCosman/tide.git
synced 2024-12-23 20:13:05 +03:00
f57253f9c4
* Add Android icon * Minor code changes, change background color and icon * I wonder if misspell is happy with quotes * Nope, wimp out and call it dark theme Co-authored-by: Ilan Cosman <ilancosman@gmail.com>
34 lines
691 B
Fish
34 lines
691 B
Fish
# RUN: %fish %s
|
|
|
|
mock uname \* "echo Darwin"
|
|
|
|
_tide_detect_os
|
|
# CHECK:
|
|
# CHECK: D6D6D6
|
|
# CHECK: 333333
|
|
|
|
mock uname \* "echo Linux"
|
|
mock uname -o "echo Android"
|
|
_tide_detect_os
|
|
# CHECK:
|
|
# CHECK: 3DDC84
|
|
# CHECK: 3C3F41
|
|
|
|
function _detect_os_linux_cases -a file
|
|
set -l dir (status dirname)
|
|
_tide_detect_os_linux_cases $dir/$file ID ||
|
|
_tide_detect_os_linux_cases $dir/$file ID_LIKE ||
|
|
_tide_detect_os_linux_cases $dir/$file DISTRIB_ID
|
|
end
|
|
|
|
_detect_os_linux_cases endeavouros-etc-release
|
|
# CHECK:
|
|
# CHECK: 1793D1
|
|
# CHECK: 4D4D4D
|
|
|
|
# This tests spaces, e.g "opensuse suse"
|
|
_detect_os_linux_cases opensuse-etc-release
|
|
# CHECK:
|
|
# CHECK: 73BA25
|
|
# CHECK: 173f4f
|