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

8
.zshrc
View file

@ -41,10 +41,16 @@ else
fi
# 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
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 ~/.aliases