aboutsummaryrefslogtreecommitdiff
path: root/install-root-zsh.sh
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2023-04-07 20:27:28 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2023-04-12 01:49:18 +0300
commitcc8e82941800a8ebb8a59ab22987a41c5aaa9c3e (patch)
tree90500e549d0951cabce41103be21b850b1b078f9 /install-root-zsh.sh
parentef8bf4e980eb149f6ad94b4ce370b02719d41555 (diff)
downloadswayrice-cc8e82941800a8ebb8a59ab22987a41c5aaa9c3e.tar.gz
swayrice-cc8e82941800a8ebb8a59ab22987a41c5aaa9c3e.zip
Use zsh config with root user as well
Diffstat (limited to 'install-root-zsh.sh')
-rwxr-xr-xinstall-root-zsh.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/install-root-zsh.sh b/install-root-zsh.sh
new file mode 100755
index 0000000..486001b
--- /dev/null
+++ b/install-root-zsh.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+# Make root use zsh and our zsh config, but with a slightly modified profile
+
+cp root/.profile /root/.profile
+ln -s /root/.profile /root/.zprofile
+mkdir -p /root/.config/zsh
+ln -s $PWD/dotfiles/.config/zsh/.* /root/.config/zsh/
+ln -s $PWD/dotfiles/.config/zsh/* /root/.config/zsh/
+
+chsh -s /bin/zsh root