Strip domain from hostname on macOS

Fortunately this command also works on Linux but its not required there.

```console
$ hostname -s
```
This commit is contained in:
Kenneth Benzie 2023-04-26 17:10:51 +01:00
parent 09379eebc0
commit 6dbd391a56

View File

@ -127,7 +127,7 @@ if -b '[ "$WSLENV" = "" ]' \
# Left status style
if -b '[ "$WSL_DISTRO_NAME" != "" ]' \
'setw -g status-left " #(hostname)|#{WSL_DISTRO_NAME}|#{session_name}"' \
'setw -g status-left " #(hostname)|#{session_name}"'
'setw -g status-left " #(hostname -s)|#{session_name}"'
setw -g status-left-style fg=colour240,bg=colour233
setw -g status-left-length 32