X-Git-Url: https://git.distorted.org.uk/~mdw/profile/blobdiff_plain/8d09a762192c5a26dfa36b973e5adc1a4786e0dc..7ab341456a3ca3450b6cc6c779436a91779b05a3:/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"