diff options
author | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2023-04-07 20:27:28 +0300 |
---|---|---|
committer | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2023-04-12 01:49:18 +0300 |
commit | cc8e82941800a8ebb8a59ab22987a41c5aaa9c3e (patch) | |
tree | 90500e549d0951cabce41103be21b850b1b078f9 /install-root-zsh.sh | |
parent | ef8bf4e980eb149f6ad94b4ce370b02719d41555 (diff) | |
download | swayrice-cc8e82941800a8ebb8a59ab22987a41c5aaa9c3e.tar.gz swayrice-cc8e82941800a8ebb8a59ab22987a41c5aaa9c3e.zip |
Use zsh config with root user as well
Diffstat (limited to 'install-root-zsh.sh')
-rwxr-xr-x | install-root-zsh.sh | 10 |
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 |