This commit is contained in:
Austen Adler 2016-01-22 02:47:34 -05:00
parent 8014583743
commit e2b86551f6

View File

@ -23,8 +23,18 @@ function asroot(){
xauth extract $TEMPFILE $DISPLAY xauth extract $TEMPFILE $DISPLAY
sudo zsh -c "xauth merge $TEMPFILE;(srm $TEMPFILE||rm $TEMPFILE)&'$@';" sudo zsh -c "xauth merge $TEMPFILE;(srm $TEMPFILE||rm $TEMPFILE)&'$@';"
} }
dsl() {
while (( $# > 0 )); do
readlink $1 2>&1 >/dev/null && mv $(readlink $1) $1
shift
done
}
function dedir(){ function dedir(){
mv "$1"/{.,}* . mv "$1"/* .
rmdir "$1"
if (( !? != 0 )); then
mv "$1"/.* .
fi
rmdir "$1" rmdir "$1"
} }
alias cpatch='diff -crB' alias cpatch='diff -crB'