From ec9276241802c9c44fd4b1e4e2ba7989d501b91f Mon Sep 17 00:00:00 2001 From: BigfootACA Date: Mon, 3 Jun 2024 14:22:40 +0800 Subject: [PATCH] configs: shell: add zsh and oh-my-zsh Signed-off-by: BigfootACA --- configs/shell/zsh.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 configs/shell/zsh.yaml diff --git a/configs/shell/zsh.yaml b/configs/shell/zsh.yaml new file mode 100644 index 0000000..5686080 --- /dev/null +++ b/configs/shell/zsh.yaml @@ -0,0 +1,24 @@ +pacman: + install: + - zsh + - oh-my-zsh-git +filesystem: + files: + - path: /etc/skel/.bashrc + stage: pre-user + content: | + if [ -n "$$BASH" ] && [[ "$$-" = *i* ]]; then + exec zsh + fi + - path: /etc/skel/.zshrc + stage: pre-user + content: | + ZSH=/usr/share/oh-my-zsh/ + ZSH_THEME="ys" + plugins=(git) + ZSH_CACHE_DIR=$$HOME/.cache/oh-my-zsh + if [[ ! -d $$ZSH_CACHE_DIR ]]; then + mkdir $$ZSH_CACHE_DIR + fi + source $$ZSH/oh-my-zsh.sh + setopt nonomatch