Add weather inside and outside of tmux
This commit is contained in:
parent
85bd8a5c65
commit
dcd6ddc91d
2 changed files with 8 additions and 2 deletions
8
.zshrc
8
.zshrc
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue