Add weather inside and outside of tmux

This commit is contained in:
Kaholaz 2023-02-20 01:05:39 +01:00
parent 85bd8a5c65
commit dcd6ddc91d
Signed by: kaholaz
GPG key ID: 2EFFEDEE03519691
2 changed files with 8 additions and 2 deletions

View file

@ -52,7 +52,7 @@ set -g status-position bottom
set -g status-justify left set -g status-justify left
set -g status-style 'dim' set -g status-style 'dim'
set -g status-left ' #S | ' set -g status-left ' #S | '
set -g status-right '%F %H:%M:%S #[fg=color100,bg=color237] #($TMUX_PLUGIN_MANAGER_PATH/tmux-mem-cpu-load/tmux-mem-cpu-load --interval 1 --mem-mode 0 --averages-count 0) #[fg=color82,bg=color236,bold] #H ' set -g status-right '#(curl -s wttr.in/Trondheim\?format\="%%l:+%%c%%t") #[bg=color237] %a %b %d #[fg=color7]%H:%M #[fg=color82,bg=color236,bold] #H '
set -g status-right-length 80 set -g status-right-length 80
set -g status-left-length 20 set -g status-left-length 20

8
.zshrc
View file

@ -41,10 +41,16 @@ else
fi fi
# Attach to a tmux session on startup # Attach to a tmux session on startup
if [ -z "$TMUX" ] && [ -n "$SSH_CLIENT" ]; then if [ -z "$TMUX" ] && [ -n "$SSH_CONNECTION" ]; then
tmux attach -t Default || tmux new -s Default tmux attach -t Default || tmux new -s Default
fi fi
# Attach to a tmux session on startup
if [ -z "$TMUX" ]; then
curl -s 'wttr.in/Trondheim?format=%l:+%c%t\n'
fi
source ~/.profile source ~/.profile
source ~/.aliases source ~/.aliases