theme/demula: use `$OSTYPE` instead of `$(uname)`
parent
2f79932967
commit
bc8f702cf5
|
|
@ -98,7 +98,7 @@ prompt() {
|
|||
local MOVE_CURSOR_RIGHTMOST='\033[500C'
|
||||
local MOVE_CURSOR_5_LEFT='\033[5D'
|
||||
|
||||
if [ $(uname) = "Linux" ];
|
||||
if [[ "$OSTYPE" = 'linux'* ]]
|
||||
then
|
||||
PS1="${TITLEBAR}${SAVE_CURSOR}${MOVE_CURSOR_RIGHTMOST}${MOVE_CURSOR_5_LEFT}
|
||||
$(safe_battery_charge)${RESTORE_CURSOR}\
|
||||
|
|
|
|||
Loading…
Reference in New Issue