Compare commits

...

2 Commits

Author SHA1 Message Date
PorridgePi
75565047ec bootstrap: gpg: Initial commit 2022-09-27 01:54:54 +00:00
PorridgePi
e09376bd8b bootstrap: zsh: Initial commit 2022-09-27 01:54:32 +00:00
2 changed files with 24 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
if ! command -v gpg &> /dev/null; then
echo 'Installing gpg'
sudo apt update
sudo apt install gpg -y
fi
echo 'gpg is installed'

17
.config/yadm/bootstrap.d/zsh.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/bash
if ! command -v zsh &> /dev/null; then
echo 'Installing zsh'
sudo apt update
sudo apt install zsh -y
fi
echo 'zsh is installed'
if [ ! $(awk -F: -v user="$USER" '$1 == user {print $NF}' /etc/passwd) = $(which zsh) ]; then
echo 'zsh is not default shell'
echo 'Setting zsh as default shell...'
sudo chsh -s $(which zsh) $(whoami)
fi
echo 'zsh is default shell'