From 8c9fd1d36d516e83d34cf18b9ac79a6d9c517ede Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Sun, 7 Apr 2019 21:11:00 +0200 Subject: [PATCH] Split up home files to also allow root some. --- buster/home_files/{eeepc => minimal}/.bashrc | 2 +- buster/home_files/root/.shell_prompt_color | 1 + buster/home_files/{eeepc => user_eeepc}/.Xresources | 0 buster/home_files/{eeepc => user_eeepc}/.config/i3/config | 0 .../home_files/{eeepc => user_eeepc}/.config/i3status/config | 0 buster/home_files/user_eeepc/.shell_prompt_color | 1 + buster/home_files/{eeepc => user_eeepc}/.xinitrc | 0 buster/setup_scripts/setup_eeepc.sh | 5 +++-- 8 files changed, 6 insertions(+), 3 deletions(-) rename buster/home_files/{eeepc => minimal}/.bashrc (88%) create mode 100644 buster/home_files/root/.shell_prompt_color rename buster/home_files/{eeepc => user_eeepc}/.Xresources (100%) rename buster/home_files/{eeepc => user_eeepc}/.config/i3/config (100%) rename buster/home_files/{eeepc => user_eeepc}/.config/i3status/config (100%) create mode 100644 buster/home_files/user_eeepc/.shell_prompt_color rename buster/home_files/{eeepc => user_eeepc}/.xinitrc (100%) diff --git a/buster/home_files/eeepc/.bashrc b/buster/home_files/minimal/.bashrc similarity index 88% rename from buster/home_files/eeepc/.bashrc rename to buster/home_files/minimal/.bashrc index 85c2e22..5ee9ad8 100644 --- a/buster/home_files/eeepc/.bashrc +++ b/buster/home_files/minimal/.bashrc @@ -20,7 +20,7 @@ if [ ! "$BASH" = "" ]; then tput_color="\[$tput_color\]" tput_reset="\[$tput_reset\]" fi -PS1="${tput_color}["\$\(date\ +%Y-%m-%d/%H:%M:%S/%Z\)" $USER@$(hostname):"\$\(pwd\)"]$ $tput_reset" +PS1="${tput_color}["\$\(date\ +%Y-%m-%d/%H:%M:%S/%Z\)" $(whoami)@$(hostname):"\$\(pwd\)"]$ $tput_reset" PS2="${tput_color}> $tput_reset" PS3="${tput_color}select: $tput_reset" PS4="${tput_color}+ $tput_reset" diff --git a/buster/home_files/root/.shell_prompt_color b/buster/home_files/root/.shell_prompt_color new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/buster/home_files/root/.shell_prompt_color @@ -0,0 +1 @@ +9 diff --git a/buster/home_files/eeepc/.Xresources b/buster/home_files/user_eeepc/.Xresources similarity index 100% rename from buster/home_files/eeepc/.Xresources rename to buster/home_files/user_eeepc/.Xresources diff --git a/buster/home_files/eeepc/.config/i3/config b/buster/home_files/user_eeepc/.config/i3/config similarity index 100% rename from buster/home_files/eeepc/.config/i3/config rename to buster/home_files/user_eeepc/.config/i3/config diff --git a/buster/home_files/eeepc/.config/i3status/config b/buster/home_files/user_eeepc/.config/i3status/config similarity index 100% rename from buster/home_files/eeepc/.config/i3status/config rename to buster/home_files/user_eeepc/.config/i3status/config diff --git a/buster/home_files/user_eeepc/.shell_prompt_color b/buster/home_files/user_eeepc/.shell_prompt_color new file mode 100644 index 0000000..0cfbf08 --- /dev/null +++ b/buster/home_files/user_eeepc/.shell_prompt_color @@ -0,0 +1 @@ +2 diff --git a/buster/home_files/eeepc/.xinitrc b/buster/home_files/user_eeepc/.xinitrc similarity index 100% rename from buster/home_files/eeepc/.xinitrc rename to buster/home_files/user_eeepc/.xinitrc diff --git a/buster/setup_scripts/setup_eeepc.sh b/buster/setup_scripts/setup_eeepc.sh index 74efe1c..e37d4c7 100755 --- a/buster/setup_scripts/setup_eeepc.sh +++ b/buster/setup_scripts/setup_eeepc.sh @@ -14,10 +14,11 @@ cd "${setup_scripts_dir}" ./copy_dirtree.sh "${config_tree_prefix}/etc_files" "" eeepc ./install_for_target.sh eeepc +./copy_dirtree.sh "${config_tree_prefix}/home_files" "/root" minimal root if [ ! -d "/home/plom" ]; then adduser --disabled-password --gecos "" plom usermod -a -G sudo plom su -c "cd && git clone https://plomlompom.com/repos/clone/config" plom - su -c "~/config/buster/setup_scripts/copy_dirtree.sh ~/config/buster/home_files ~ eeepc" plom - su -c "echo 2 > ~/.shell_prompt_color" plom + su -c "~/config/buster/setup_scripts/copy_dirtree.sh ~/config/buster/home_files ~ minimal user_eeepc" plom + passwd plom fi -- 2.30.2