The configuration below is in my
Defaults !visiblepw Defaults always_set_home Defaults env_reset Defaults env_keep = "COLORS EDITOR DISPLAY HOSTNAME HISTSIZE INPUTRC KDEDIR LS_COLORS" Defaults env_keep += "MAIL PS1 PS2 QTDIR USERNAME LANG LC_ADDRESS LC_CTYPE" Defaults env_keep += "LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES" Defaults env_keep += "LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE" Defaults env_keep += "LC_TIME LC_ALL LANGUAGE LINGUAS _XKB_CHARSET XAUTHORITY" Defaults secure_path = /sbin:/bin:/usr/sbin:/usr/bin
sudo su my
PS1 terminal changes to the system default; ignoring my
PS1 setting. How can I fix this so that the environment variables are not lost when
Weird; it's exporting
EDITOR but it's not exporting
PS1 for some reason; it's like it's being forcefully overridden; how can I stop this?
When I run
sudo -V the variables to keep
PS1 is listed; it's not listed in the variables to remove.