From 5dd202512dd57cc3c4b097417740403e81bcc6d7 Mon Sep 17 00:00:00 2001 From: Buddy Sandidge Date: Thu, 25 May 2023 15:47:05 -0700 Subject: [PATCH] Convert starship from stow to chezmoi --- .chezmoiignore | 1 - .../starship.sh => dot_config/bash/bashrc.d/starship.sh.tmpl | 2 ++ starship/.config/starship.toml => dot_config/starship.toml.tmpl | 2 ++ .../starship.zsh => dot_config/zsh/zshrc.d/starship.zsh.tmpl | 2 ++ .../bin/executable_install-starship | 0 5 files changed, 6 insertions(+), 1 deletion(-) rename starship/.config/bash/bashrc.d/starship.sh => dot_config/bash/bashrc.d/starship.sh.tmpl (51%) rename starship/.config/starship.toml => dot_config/starship.toml.tmpl (96%) rename starship/.config/zsh/zshrc.d/starship.zsh => dot_config/zsh/zshrc.d/starship.zsh.tmpl (50%) rename starship/.local/bin/install-starship-home => dot_local/bin/executable_install-starship (100%) mode change 100755 => 100644 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