Remove bloat.
This commit is contained in:
parent
383dbfd853
commit
8fc7b1067c
2 changed files with 3 additions and 17 deletions
6
.zshenv
6
.zshenv
|
@ -48,10 +48,4 @@ fi
|
||||||
|
|
||||||
[ -d "$HOME/.asdf" ] && export PATH="$HOME/.asdf/shims:$PATH"
|
[ -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
|
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
|
||||||
|
|
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 "plugins/command-not-found", from:oh-my-zsh
|
||||||
zplug load
|
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
|
# Attach to a tmux session on startup
|
||||||
if [ -z "$TMUX" ] && [ -n "$SSH_CONNECTION" ]; then
|
if [ -z "$TMUX" ] && [ -n "$SSH_CONNECTION" ]; then
|
||||||
tmux attach -t Default || tmux new -s Default
|
tmux attach -t Default || tmux new -s Default
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Show the weather and a quote on startup
|
# Show a quote on startup
|
||||||
if [ -z "$TMUX" ] && [[ "$HAS_NETWORK" == 1 ]]; then
|
if [ -z "$TMUX" ]; then
|
||||||
curl -s 'wttr.in/Trondheim?format=%l:+%c%t\n' --max-time 0.5 2> /dev/null
|
|
||||||
echo " ---"
|
|
||||||
fortune -s
|
fortune -s
|
||||||
|
echo " ---"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export NVM_DIR="$HOME/.nvm"
|
export NVM_DIR="$HOME/.nvm"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue