All the zsh updates wheee
This commit is contained in:
parent
ed11d7a6ae
commit
afef675775
38
zshrc
38
zshrc
@ -41,6 +41,8 @@ path=(
|
||||
$HOME/.pyenv/bin
|
||||
$HOME/.yarn/bin
|
||||
$HOME/perl5/bin
|
||||
$HOME/Library/Python/3.8/bin
|
||||
/usr/local/opt/python@3.8/bin
|
||||
/usr/local/sbin
|
||||
/usr/local/bin
|
||||
/usr/bin/vendor_perl
|
||||
@ -51,6 +53,7 @@ path=(
|
||||
/snap/bin
|
||||
/usr/games
|
||||
/usr/local/games
|
||||
/usr/local/texlive/2018/bin/x86_64-darwin
|
||||
)
|
||||
|
||||
plugins=(
|
||||
@ -120,7 +123,7 @@ if [[ -f ~/.cargo/env ]]; then
|
||||
fi
|
||||
|
||||
if gimme --version &>/dev/null; then
|
||||
eval "$(gimme '1.12.x')" 2>/dev/null
|
||||
eval "$(gimme '1.14.x')" 2>/dev/null
|
||||
export GOPATH="$HOME/go"
|
||||
fi
|
||||
|
||||
@ -157,6 +160,28 @@ function __maybesource() {
|
||||
fi
|
||||
}
|
||||
|
||||
function docker-cleanup() {
|
||||
local once
|
||||
if [[ "${1}" == once ]]; then
|
||||
once=1
|
||||
fi
|
||||
|
||||
while true; do
|
||||
date -u
|
||||
echo ----
|
||||
docker images --filter='dangling=true' -q |
|
||||
xargs docker rmi
|
||||
if [[ "${once}" == 1 ]]; then
|
||||
return
|
||||
fi
|
||||
for i in {0..9}; do
|
||||
echo -n z
|
||||
sleep 1
|
||||
done
|
||||
echo
|
||||
done
|
||||
}
|
||||
|
||||
load-ssh-agent &>/dev/null
|
||||
|
||||
__maybesource ~/.zshenv
|
||||
@ -165,13 +190,22 @@ __maybesource ~/google-cloud-sdk/completion.zsh.inc
|
||||
__maybesource /usr/share/nvm/init-nvm.sh silent
|
||||
__maybesource /usr/local/opt/nvm/nvm.sh silent
|
||||
__maybesource ~/.kiex/scripts/kiex
|
||||
__maybesource ~/.config/tabtab/__tabtab.zsh
|
||||
|
||||
if [[ -f ~/perl5/lib/perl5/local/lib.pm ]]; then
|
||||
eval "$(perl -I ~/perl5/lib/perl5 '-Mlocal::lib')"
|
||||
fi
|
||||
|
||||
if [[ -d /usr/local/opt/python@3.8/lib ]]; then
|
||||
export LDFLAGS="-L/usr/local/opt/python@3.8/lib"
|
||||
fi
|
||||
|
||||
if [[ -d /usr/local/opt/python@3.8/lib/pkgconfig ]]; then
|
||||
export PKG_CONFIG_PATH="/usr/local/opt/python@3.8/lib/pkgconfig"
|
||||
fi
|
||||
|
||||
if nvm &>/dev/null; then
|
||||
nvm use --delete-prefix lts/dubnium --silent
|
||||
nvm use --delete-prefix lts/erbium --silent
|
||||
fi
|
||||
|
||||
true
|
||||
|
Loading…
Reference in New Issue
Block a user