mirror of
https://github.com/notwa/rc
synced 2025-02-05 07:43:22 -08:00
clean up old stuff
This commit is contained in:
parent
213b2a55f0
commit
9cf6a1821c
2 changed files with 5 additions and 16 deletions
|
@ -44,7 +44,7 @@ has() { which "$1" >&/dev/null && which "$1"; }
|
||||||
|
|
||||||
# cleanup in case of inherited exports
|
# cleanup in case of inherited exports
|
||||||
unset PREFIX CC CPP CXX LD CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
|
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
|
unset LD_LIBRARY_PATH
|
||||||
|
|
||||||
if [ "$LANG" != "en_US.UTF-8" ] && [ "$LANG" != "en_CA.UTF-8" ]; then
|
if [ "$LANG" != "en_US.UTF-8" ] && [ "$LANG" != "en_CA.UTF-8" ]; then
|
||||||
|
|
19
home/zshrc
19
home/zshrc
|
@ -63,7 +63,6 @@ function {
|
||||||
ksh_typeset # treat `local x=$(cmd)` and `x=$(cmd)` the same
|
ksh_typeset # treat `local x=$(cmd)` and `x=$(cmd)` the same
|
||||||
)
|
)
|
||||||
setopt "${opts[@]}"
|
setopt "${opts[@]}"
|
||||||
unsetopt rm_star_silent rm_star_wait # yolo
|
|
||||||
}
|
}
|
||||||
|
|
||||||
autoload -U zmv
|
autoload -U zmv
|
||||||
|
@ -141,7 +140,7 @@ wipe() {
|
||||||
|
|
||||||
for x in ack cd cp ebuild gcc gist grep ln man mkdir mv rm
|
for x in ack cd cp ebuild gcc gist grep ln man mkdir mv rm
|
||||||
alias $x="nocorrect $x"
|
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"
|
alias $x="noglob $x"
|
||||||
unset x
|
unset x
|
||||||
|
|
||||||
|
@ -153,6 +152,7 @@ tw() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if [[ "$TERM" = xterm* ]]; then
|
if [[ "$TERM" = xterm* ]]; then
|
||||||
|
# set window title
|
||||||
precmd() { print -Pn "\e]2;%M: %~\a" }
|
precmd() { print -Pn "\e]2;%M: %~\a" }
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -167,8 +167,8 @@ function {
|
||||||
}
|
}
|
||||||
|
|
||||||
reload() {
|
reload() {
|
||||||
# This doesn't seem to help with _vim_files errors, ehh
|
# this doesn't seem to help with _vim_files errors, eh.
|
||||||
# you wanna rm .zcompdump then exit, that's why
|
# you wanna rm .zcompdump first, then exit. that's why!
|
||||||
cd ~
|
cd ~
|
||||||
autoload -U zrecompile
|
autoload -U zrecompile
|
||||||
[ -f .zshrc ] && zrecompile -p .zshrc
|
[ -f .zshrc ] && zrecompile -p .zshrc
|
||||||
|
@ -178,17 +178,6 @@ reload() {
|
||||||
exec zsh # reload shell, inheriting environment
|
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
|
if [[ "$host" == "spectre" ]] || [[ "$host" == *"banshee" ]]; then
|
||||||
# via https://github.com/whjvenyl/fasd
|
# via https://github.com/whjvenyl/fasd
|
||||||
if [ ! -s "$HOME/.fasd_init" ]; then
|
if [ ! -s "$HOME/.fasd_init" ]; then
|
||||||
|
|
Loading…
Add table
Reference in a new issue