Annoyingly, `sudo' doesn't start a shell if you don't give it a command
to run. So turn `rootly' into a shell function which does the right
thing for me.
alias which="command -v"
alias rc="rc -l"
alias ssync="rsync -e ssh"
alias which="command -v"
alias rc="rc -l"
alias ssync="rsync -e ssh"
-alias rootly=$__MDW_ROOTLY
+rootly () {
+ case $# in 0) set -- "${SHELL-/bin/sh}" ;; esac
+ $__MDW_ROOTLY "$@"
+}
alias r=rootly
alias re="rootly $EDITOR"
alias pstree="pstree -hl"
alias r=rootly
alias re="rootly $EDITOR"
alias pstree="pstree -hl"