[ZSH][NVIM] Treat sudo from ising and fi545621 as personal

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Fabian IsingandClaude Opus 5.5 committed 2026-10-15 13:25:46 +02:00
1 parent aed2f4c5df
commit 88049f8676
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
set nocompatible
filetype off
if ((!filereadable(stdpath('config') . "/.shared_config")) || (exists('$SUDO_USER') && $SUDO_USER == 'fabian'))
if ((!filereadable(stdpath('config') . "/.shared_config")) || (index(['fabian', 'ising', 'fi545621'], $SUDO_USER) >= 0))
let shared_config = 0
else
let shared_config = 1
+1 -1
View File
@@ -4,7 +4,7 @@ export XDG_CONFIG_HOME="$HOME/.config"
[[ -z $SSH_AUTH_SOCK ]] || export FORWARD_SOCK=$SSH_AUTH_SOCK
[[ -f ~/.zsh/.powerline_config ]] && source ~/.zsh/.powerline_config
if [[ -f ~/.zsh/.shared_config && "$SUDO_USER" != "fabian" ]]; then
if [[ -f ~/.zsh/.shared_config && "$SUDO_USER" != (fabian|ising|fi545621) ]]; then
shared_config=1
else
shared_config=0