Add setup script
This commit is contained in:
21
scripts/setup.sh
Normal file
21
scripts/setup.sh
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
install_package() {
|
||||||
|
/usr/bin/apt install $*
|
||||||
|
}
|
||||||
|
|
||||||
|
update_default_shell() {
|
||||||
|
/usr/sbin/usermod -s /usr/bin/zsh $1
|
||||||
|
}
|
||||||
|
|
||||||
|
install_shell_config() {
|
||||||
|
/usr/bin/ln -s /etc/toolkit/sh/.zshrc $1
|
||||||
|
}
|
||||||
|
|
||||||
|
install_package zsh
|
||||||
|
|
||||||
|
update_default_shell root
|
||||||
|
update_default_shell coby
|
||||||
|
|
||||||
|
install_shell_config /root/.zshrc
|
||||||
|
install_shell_config /home/coby/.zshrc
|
Reference in New Issue
Block a user