diff --git a/.chezmoiignore b/.chezmoiignore index 00846a5..d0534a6 100644 --- a/.chezmoiignore +++ b/.chezmoiignore @@ -1,7 +1,6 @@ /hellotech/ /install-scripts/ /old-scripts/ -/starship/ /tmux/ /vim-fancy/ /vim/ diff --git a/starship/.config/bash/bashrc.d/starship.sh b/dot_config/bash/bashrc.d/starship.sh.tmpl similarity index 51% rename from starship/.config/bash/bashrc.d/starship.sh rename to dot_config/bash/bashrc.d/starship.sh.tmpl index 048e6c8..c569c46 100644 --- a/starship/.config/bash/bashrc.d/starship.sh +++ b/dot_config/bash/bashrc.d/starship.sh.tmpl @@ -1,2 +1,4 @@ +{{ if lookPath "starship" -}} # vim: ft=bash source <(starship init bash) +{{- end }} diff --git a/starship/.config/starship.toml b/dot_config/starship.toml.tmpl similarity index 96% rename from starship/.config/starship.toml rename to dot_config/starship.toml.tmpl index 75fc15b..00d0c9b 100644 --- a/starship/.config/starship.toml +++ b/dot_config/starship.toml.tmpl @@ -1,3 +1,4 @@ +{{ if lookPath "starship" -}} # Get editor completions based on the config schema "$schema" = 'https://starship.rs/config-schema.json' @@ -62,3 +63,4 @@ format = "[$duration]($style) " [character] success_symbol = "λ" error_symbol = "[☠](red)" +{{- end }} diff --git a/starship/.config/zsh/zshrc.d/starship.zsh b/dot_config/zsh/zshrc.d/starship.zsh.tmpl similarity index 50% rename from starship/.config/zsh/zshrc.d/starship.zsh rename to dot_config/zsh/zshrc.d/starship.zsh.tmpl index d24a826..4863fb0 100644 --- a/starship/.config/zsh/zshrc.d/starship.zsh +++ b/dot_config/zsh/zshrc.d/starship.zsh.tmpl @@ -1,2 +1,4 @@ +{{ if lookPath "starship" -}} # vim: ft=zsh source <(starship init zsh) +{{- end }} diff --git a/starship/.local/bin/install-starship-home b/dot_local/bin/executable_install-starship old mode 100755 new mode 100644 similarity index 100% rename from starship/.local/bin/install-starship-home rename to dot_local/bin/executable_install-starship