Changes
This commit is contained in:
parent
8014583743
commit
e2b86551f6
12
shells/zshrc
12
shells/zshrc
@ -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'
|
||||||
|
Loading…
Reference in New Issue
Block a user