Skip to content

Commit

Permalink
Update config
Browse files Browse the repository at this point in the history
  • Loading branch information
XiaoConstantine committed Jul 12, 2024
1 parent 447c5f5 commit f6ccb33
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ tools:
- name: "neovim"
- name: "pyenv"
- name: "gh"
post_install:
- gh auth login
- name: "ghq"
- name: "luajit"
- name: "go"
Expand Down Expand Up @@ -61,10 +63,18 @@ configure:
- name: "zmodule"
config_url: "https://github.com/XiaoConstantine/nvim_lua_config/blob/master/.zsh_custom"
install_path: "~/.zsh_custom"
- name: "zimfw"
configure_command: echo 'zmodule $HOME/.zsh_custom' >> $HOME/.zimrc
- name: "zsh"
configure_command: echo 'source $HOME/.alias.zsh' >> $HOME/.zshrc
- name: "github"
install_path: "~/.config/gh"
configure_command: gh auth login
- name: "zimfw"
configure_command:
- |
if [ -f ~/.zsh_custom ]; then
while IFS= read -r line; do
if [[ $line == zmodule* ]] && ! grep -qF "$line" ~/.zimrc; then
echo "$line" >> ~/.zimrc
fi
done < ~/.zsh_custom
else
echo "~/.zsh_custom file not found. Skipping module addition."
fi

0 comments on commit f6ccb33

Please sign in to comment.