diff options
author | Emil Renner Berthing <esmil@labitat.dk> | 2018-09-30 21:25:28 +0200 |
---|---|---|
committer | Emil Renner Berthing <esmil@labitat.dk> | 2018-09-30 21:30:53 +0200 |
commit | a39fb817e87d053f82e06305b4a737d40c483ee3 (patch) | |
tree | 595e7297f2f7a565e3e5786255e17d4815eab486 /roles/users/files/root/bash_profile | |
parent | a34e4d1dfe1b6990824051fde40e9288c8cdfd5d (diff) | |
download | labitat-ansible-a39fb817e87d053f82e06305b4a737d40c483ee3.tar.gz labitat-ansible-a39fb817e87d053f82e06305b4a737d40c483ee3.tar.xz labitat-ansible-a39fb817e87d053f82e06305b4a737d40c483ee3.zip |
users: root: let each user have their own root bashrc
Diffstat (limited to 'roles/users/files/root/bash_profile')
-rw-r--r-- | roles/users/files/root/bash_profile | 5 |
1 files changed, 5 insertions, 0 deletions
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 |