diff --git a/files/scripts/installohmyzsh.sh b/files/scripts/installohmyzsh.sh new file mode 100644 index 0000000..44ae1c0 --- /dev/null +++ b/files/scripts/installohmyzsh.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +# Tell build process to exit if there are any errors. +set -oue pipefail + +git clone https://github.com/ohmyzsh/ohmyzsh.git /usr/share/ohmyzsh \ No newline at end of file diff --git a/files/system/etc/default/useradd b/files/system/etc/default/useradd new file mode 100644 index 0000000..a029725 --- /dev/null +++ b/files/system/etc/default/useradd @@ -0,0 +1,8 @@ +# useradd defaults file +GROUP=100 +HOME=/home +INACTIVE=-1 +EXPIRE= +SHELL=/bin/zsh +SKEL=/etc/skel +CREATE_MAIL_SPOOL=yes \ No newline at end of file diff --git a/recipes/components/zsh-module.yml b/recipes/components/zsh-module.yml new file mode 100644 index 0000000..b504763 --- /dev/null +++ b/recipes/components/zsh-module.yml @@ -0,0 +1,15 @@ +modules: + - type: dnf + install: + packages: + # zsh + - zsh + # sqlite for some autocomplete + - sqlite + # zoxide for z stuff + - zoxide + + # install oh my zsh + - type: script + scripts: + - installohmyzsh.sh \ No newline at end of file