Skip to content

Commit

Permalink
Revert "alias: simpler version of susu"
Browse files Browse the repository at this point in the history
This reverts commit d125ea4. I would
feel better if I could use -H but then the previous version is still
needed.
  • Loading branch information
vincentbernat committed Jun 4, 2020
1 parent d125ea4 commit 43b4951
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion rc/alias.zsh
Expand Up @@ -117,7 +117,12 @@ alias smv='rsync -P --remove-source-files'

# Less generic aliases
susu() {
command sudo -sE -u ${1:-root}
command sudo -H -u ${1:-root} \
env ZDOTDIR=${ZDOTDIR:-$HOME} \
ZSH=$ZSH ${DISPLAY+DISPLAY=$DISPLAY} \
${SSH_TTY+SSH_TTY=$SSH_TTY} \
${SSH_AUTH_SOCK+SSH_AUTH_SOCK=$SSH_AUTH_SOCK} \
${ZSH_NAME} -i -l
}

# JSON pretty-printing.
Expand Down

0 comments on commit 43b4951

Please sign in to comment.