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:
parent
09379eebc0
commit
6dbd391a56
@ -127,7 +127,7 @@ if -b '[ "$WSLENV" = "" ]' \
|
|||||||
# Left status style
|
# Left status style
|
||||||
if -b '[ "$WSL_DISTRO_NAME" != "" ]' \
|
if -b '[ "$WSL_DISTRO_NAME" != "" ]' \
|
||||||
'setw -g status-left " #(hostname)|#{WSL_DISTRO_NAME}|#{session_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-style fg=colour240,bg=colour233
|
||||||
setw -g status-left-length 32
|
setw -g status-left-length 32
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user