Compare commits

..

2 Commits

Author SHA1 Message Date
91a590ee52
Merge 81fda024bd into ec92762418 2024-06-03 14:25:45 +08:00
ec92762418 configs: shell: add zsh and oh-my-zsh
Signed-off-by: BigfootACA <bigfoot@classfun.cn>
2024-06-03 14:25:07 +08:00

24
configs/shell/zsh.yaml Normal file
View File

@ -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