diff --git a/.zshenv b/.zshenv index 16cfc21..6849d2f 100644 --- a/.zshenv +++ b/.zshenv @@ -48,10 +48,4 @@ fi [ -d "$HOME/.asdf" ] && export PATH="$HOME/.asdf/shims:$PATH" -export PATH="$PATH:/home/kaholaz/.cache/scalacli/local-repo/bin/scala-cli" - -# >>> coursier install directory >>> -export PATH="$PATH:/home/kaholaz/.local/share/coursier/bin" -# <<< coursier install directory <<< - if [ -e /home/kaholaz/.nix-profile/etc/profile.d/nix.sh ]; then . /home/kaholaz/.nix-profile/etc/profile.d/nix.sh; fi # added by Nix installer diff --git a/.zshrc b/.zshrc index 173ef7e..5a9e029 100644 --- a/.zshrc +++ b/.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"