[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:
1 parent
aed2f4c5df
commit
88049f8676
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
set nocompatible
|
set nocompatible
|
||||||
filetype off
|
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
|
let shared_config = 0
|
||||||
else
|
else
|
||||||
let shared_config = 1
|
let shared_config = 1
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@ export XDG_CONFIG_HOME="$HOME/.config"
|
|||||||
[[ -z $SSH_AUTH_SOCK ]] || export FORWARD_SOCK=$SSH_AUTH_SOCK
|
[[ -z $SSH_AUTH_SOCK ]] || export FORWARD_SOCK=$SSH_AUTH_SOCK
|
||||||
[[ -f ~/.zsh/.powerline_config ]] && source ~/.zsh/.powerline_config
|
[[ -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
|
shared_config=1
|
||||||
else
|
else
|
||||||
shared_config=0
|
shared_config=0
|
||||||
|
|||||||
Reference in new issue
Block a user