feat: add install and deploy scripts for zsh
This commit is contained in:
parent
1a9805e9c1
commit
2c7681b306
2
zsh/_deploy.sh
Normal file
2
zsh/_deploy.sh
Normal file
|
@ -0,0 +1,2 @@
|
|||
# Setup zsh
|
||||
cp ./zsh/zsh/* /root
|
14
zsh/_install.sh
Normal file
14
zsh/_install.sh
Normal file
|
@ -0,0 +1,14 @@
|
|||
# Check if eza already installed
|
||||
if [[ $(which eza) != "/usr/bin/eza" ]]; then
|
||||
# Install sources and keys
|
||||
mkdir -p /etc/apt/keyrings
|
||||
wget -qO- https://raw.githubusercontent.com/eza-community/eza/main/deb.asc | gpg --dearmor -o /etc/apt/keyrings/gierens.gpg
|
||||
echo "deb [signed-by=/etc/apt/keyrings/gierens.gpg] http://deb.gierens.de stable main" | tee /etc/apt/sources.list.d/gierens.list
|
||||
chmod 644 /etc/apt/keyrings/gierens.gpg /etc/apt/sources.list.d/gierens.list
|
||||
fi
|
||||
|
||||
# Check if Oh-My-ZSH already installed
|
||||
which omz &> /dev/null || sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
||||
|
||||
# Install or upgrade zsh and eza
|
||||
nala install -y zsh eza
|
Loading…
Reference in a new issue