Remove bloat.

This commit is contained in:
Sebastian Bugge 2025-03-27 18:49:40 +01:00
parent 383dbfd853
commit 8fc7b1067c
Signed by untrusted user who does not match committer: kaholaz
GPG key ID: 2EFFEDEE03519691
2 changed files with 3 additions and 17 deletions

14
.zshrc
View file

@ -26,23 +26,15 @@ zplug "plugins/git", from:oh-my-zsh
zplug "plugins/command-not-found", from:oh-my-zsh
zplug load
if dig google.com +timeout=1 >/dev/null 2>&1; then;
HAS_NETWORK=1
else
echo "No internet connection detected!"
HAS_NETWORK=0
fi
# Attach to a tmux session on startup
if [ -z "$TMUX" ] && [ -n "$SSH_CONNECTION" ]; then
tmux attach -t Default || tmux new -s Default
fi
# Show the weather and a quote on startup
if [ -z "$TMUX" ] && [[ "$HAS_NETWORK" == 1 ]]; then
curl -s 'wttr.in/Trondheim?format=%l:+%c%t\n' --max-time 0.5 2> /dev/null
echo " ---"
# Show a quote on startup
if [ -z "$TMUX" ]; then
fortune -s
echo " ---"
fi
export NVM_DIR="$HOME/.nvm"