Remove bloat.
This commit is contained in:
parent
f1c76040cb
commit
02203fbaad
2 changed files with 3 additions and 17 deletions
14
.zshrc
14
.zshrc
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue