Added zsh and oh my zsh, and enabling it as default for new users
This commit is contained in:
6
files/scripts/installohmyzsh.sh
Normal file
6
files/scripts/installohmyzsh.sh
Normal file
@@ -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
|
8
files/system/etc/default/useradd
Normal file
8
files/system/etc/default/useradd
Normal file
@@ -0,0 +1,8 @@
|
||||
# useradd defaults file
|
||||
GROUP=100
|
||||
HOME=/home
|
||||
INACTIVE=-1
|
||||
EXPIRE=
|
||||
SHELL=/bin/zsh
|
||||
SKEL=/etc/skel
|
||||
CREATE_MAIL_SPOOL=yes
|
15
recipes/components/zsh-module.yml
Normal file
15
recipes/components/zsh-module.yml
Normal file
@@ -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
|
Reference in New Issue
Block a user