Zed should start only for non-root.

This commit is contained in:
Bartek Stalewski 2024-08-21 15:16:42 +02:00
parent b35503dd61
commit 6f0ccca484
Signed by: ftpd
SSH Key Fingerprint: SHA256:vGQiaNJcfUMLt3wF58+Zx15C6SpRDA9spUeggjVY8Yo

View File

@ -44,7 +44,7 @@ elif [ $(command -v vim) ] ; then
else
export EDITOR=vi
fi
if [ $(command -v zed) ]; then
if [ $(command -v zed) ] && [ $(id -u) -ne 0 ]; then
export EDITOR="zed -w"
alias vim=zed
fi