diff --git a/home/-shrc b/home/-shrc index b1494ed..7518a1d 100644 --- a/home/-shrc +++ b/home/-shrc @@ -44,7 +44,7 @@ has() { which "$1" >&/dev/null && which "$1"; } # cleanup in case of inherited exports unset PREFIX CC CPP CXX LD CFLAGS CPPFLAGS CXXFLAGS LDFLAGS -unset AR RANLIB RC WINDRES OBJDUMP OBJCOPY COMPILER_PATH +unset AR RANLIB RC WINDRES OBJDUMP OBJCOPY unset LD_LIBRARY_PATH if [ "$LANG" != "en_US.UTF-8" ] && [ "$LANG" != "en_CA.UTF-8" ]; then diff --git a/home/zshrc b/home/zshrc index 1458507..46c91da 100644 --- a/home/zshrc +++ b/home/zshrc @@ -63,7 +63,6 @@ function { ksh_typeset # treat `local x=$(cmd)` and `x=$(cmd)` the same ) setopt "${opts[@]}" - unsetopt rm_star_silent rm_star_wait # yolo } autoload -U zmv @@ -141,7 +140,7 @@ wipe() { for x in ack cd cp ebuild gcc gist grep ln man mkdir mv rm alias $x="nocorrect $x" -for x in arith hex curl fc find ftp history let locate rsync scp sftp wget twitch hitbox yt ytg ai +for x in arith hex curl fc find ftp history let locate rsync scp sftp wget twitch yt ytg ai alias $x="noglob $x" unset x @@ -153,6 +152,7 @@ tw() { } if [[ "$TERM" = xterm* ]]; then + # set window title precmd() { print -Pn "\e]2;%M: %~\a" } fi @@ -167,8 +167,8 @@ function { } reload() { - # This doesn't seem to help with _vim_files errors, ehh - # you wanna rm .zcompdump then exit, that's why + # this doesn't seem to help with _vim_files errors, eh. + # you wanna rm .zcompdump first, then exit. that's why! cd ~ autoload -U zrecompile [ -f .zshrc ] && zrecompile -p .zshrc @@ -178,17 +178,6 @@ reload() { exec zsh # reload shell, inheriting environment } -[ -e "/home/$USER/opt/local/bin/torch-activate" ] && \ - . "/home/$USER/opt/local/bin/torch-activate" - -function { - local gm - printf "%s\n" "/c/Program Files/GraphicsMagick"*(On/N[1]) | read gm - if [ -d "$gm" ]; then - ADDPATH $gm - fi -} - if [[ "$host" == "spectre" ]] || [[ "$host" == *"banshee" ]]; then # via https://github.com/whjvenyl/fasd if [ ! -s "$HOME/.fasd_init" ]; then