Compare commits
6 Commits
d4733ee96b
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| b97dc14749 | |||
| ca5faff36e | |||
| a8683e7a44 | |||
| 6383b1d992 | |||
| 4c73bbff34 | |||
| da201d0243 |
@ -34,7 +34,7 @@ set -g status-interval 5
|
|||||||
# Add a space to the beginning of the status bar
|
# Add a space to the beginning of the status bar
|
||||||
# This keeps the default session name '[#S]' and adds a space before it
|
# This keeps the default session name '[#S]' and adds a space before it
|
||||||
set -g status-left-length 300
|
set -g status-left-length 300
|
||||||
set -g status-left ' #[bold] #{session_name}#[nobold] | #{user}@#{host} | #(curl -s ifconfig.me) | #(if docker info >/dev/null 2>&1; then echo " $(docker ps -q | wc -l)/$(docker ps -aq | wc -l)"; else echo "#[fg=red] down#[default]"; fi) | '
|
set -g status-left '#[bold] #(pretty=$(hostnamectl --pretty 2>/dev/null); [ -n "$pretty" ] && echo "$pretty" || hostname)#[nobold] | #{user}@#{host} | #(hostname -I | tr " " "\n" | grep -E "^(10\.|192\.168\.|172\.(1[6-9]|2[0-9]|3[01])\.)"|head -1||echo "no-private") / #(timeout 2 curl -s ifconfig.me 2>/dev/null||echo "no-public") | #(if docker info >/dev/null 2>&1; then echo " $(docker ps -q | wc -l)/$(docker ps -aq | wc -l)"; else echo "#[fg=red] down#[default]"; fi) | '
|
||||||
|
|
||||||
# Add a space to the end of the status bar
|
# Add a space to the end of the status bar
|
||||||
# This keeps the default hostname and date/time, and adds a space after
|
# This keeps the default hostname and date/time, and adds a space after
|
||||||
|
|||||||
Reference in New Issue
Block a user