From b8a539b4fff6ff7b7824531cb35547757b91aa42 Mon Sep 17 00:00:00 2001 From: g-w1 <58830309+g-w1@users.noreply.github.com> Date: Tue, 26 May 2020 14:01:24 -0400 Subject: Make it so that zsh can write a histfile. Zsh needs a directory to write it's history to. It can not make a directory and therefore, will not record history. --- larbs.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/larbs.sh b/larbs.sh index 8887a7b..e4c4346 100644 --- a/larbs.sh +++ b/larbs.sh @@ -156,6 +156,7 @@ systembeepoff() { dialog --infobox "Getting rid of that retarded error beep soun finalize(){ \ dialog --infobox "Preparing welcome message..." 4 50 echo "exec_always --no-startup-id notify-send -i ~/.local/share/larbs/larbs.png 'Welcome to LARBS:' 'Press Super+F1 for the manual.' -t 10000" >> "/home/$name/.config/i3/config" + mkdir -p /home/$name/.cache/zsh/ # allows zsh to write a histfile. If this is not put in, zsh will not make the directory and there won't be a file. dialog --title "All done!" --msgbox "Congrats! Provided there were no hidden errors, the script completed successfully and all the programs and configuration files should be in place.\\n\\nTo run the new graphical environment, log out and log back in as your new user, then run the command \"startx\" to start the graphical environment (it will start automatically in tty1).\\n\\n.t Luke" 12 80 } -- cgit v1.2.3 From eb89e0b2537c0db204893d6fb6bcf60a44e0a1ff Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Tue, 26 May 2020 14:15:40 -0400 Subject: create cache dir with correct user --- larbs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/larbs.sh b/larbs.sh index 2ed73cb..73d6b5f 100644 --- a/larbs.sh +++ b/larbs.sh @@ -156,7 +156,6 @@ systembeepoff() { dialog --infobox "Getting rid of that retarded error beep soun finalize(){ \ dialog --infobox "Preparing welcome message..." 4 50 echo "exec_always --no-startup-id notify-send -i ~/.local/share/larbs/larbs.png 'Welcome to LARBS:' 'Press Super+F1 for the manual.' -t 10000" >> "/home/$name/.config/i3/config" - mkdir -p /home/$name/.cache/zsh/ # allows zsh to write a histfile. If this is not put in, zsh will not make the directory and there won't be a file. dialog --title "All done!" --msgbox "Congrats! Provided there were no hidden errors, the script completed successfully and all the programs and configuration files should be in place.\\n\\nTo run the new graphical environment, log out and log back in as your new user, then run the command \"startx\" to start the graphical environment (it will start automatically in tty1).\\n\\n.t Luke" 12 80 } @@ -234,6 +233,7 @@ systembeepoff # Make zsh the default shell for the user. chsh -s /bin/zsh $name >/dev/null 2>&1 +sudo -u "$name" mkdir -p "/home/$name/.cache/zsh/" # dbus UUID must be generated for Artix runit. dbus-uuidgen > /var/lib/dbus/machine-id -- cgit v1.2.3