From a39fb817e87d053f82e06305b4a737d40c483ee3 Mon Sep 17 00:00:00 2001 From: Emil Renner Berthing Date: Sun, 30 Sep 2018 21:25:28 +0200 Subject: users: root: let each user have their own root bashrc --- roles/users/files/root/bash_profile | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 roles/users/files/root/bash_profile (limited to 'roles/users/files/root/bash_profile') diff --git a/roles/users/files/root/bash_profile b/roles/users/files/root/bash_profile new file mode 100644 index 0000000..457213b --- /dev/null +++ b/roles/users/files/root/bash_profile @@ -0,0 +1,5 @@ +if [[ -n "$SUDO_USER" && -f "/home/$SUDO_USER/.bashrc_root" ]]; then + . "/home/$SUDO_USER/.bashrc_root" +else + . "$HOME/.bashrc" +fi -- cgit v1.2.1