X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/blobdiff_plain/90390240487da0045dac91f05098c59d0cc45981..ac03a1f6de3456e4f41330a3bf4644fa76bc1193:/dot/bashrc diff --git a/dot/bashrc b/dot/bashrc index c39392a..69af4a1 100644 --- a/dot/bashrc +++ b/dot/bashrc @@ -98,7 +98,10 @@ alias cx='chmod a+x' 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"