From 4eb9fda73b6aded5a5668c26e8a1345ac2825c06 Mon Sep 17 00:00:00 2001 From: Kitty Fangs Date: Mon, 20 May 2024 05:29:25 +0000 Subject: [PATCH] fix: pull and link repos if homeshick already installed --- init.sh | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/init.sh b/init.sh index 627b8d5..775e11f 100644 --- a/init.sh +++ b/init.sh @@ -31,6 +31,15 @@ if [[ ! -d $HOME/.homesick ]]; then ## Link everything homeshick link --force +else + ## Update the repos + if ! command -v homeshick &>/dev/null; then + source "$HOME/.homesick/repos/homeshick/homeshick.sh" + source $HOME/.homesick/repos/homeshick/completions/homeshick-completion.bash + fi + + homeshick pull + homeshick link fi @@ -44,17 +53,17 @@ if ! command -v brew &>/dev/null; then fi ## All my asdf -if [[ ! -d $HOME/.asdf ]]; then - git clone https://github.com/asdf-vm/asdf.git ~/.asdf - git -C ~/.asdf checkout "$(git -C ~/.asdf describe --abbrev=0 --tags)" +# if [[ ! -d $HOME/.asdf ]]; then +# git clone https://github.com/asdf-vm/asdf.git ~/.asdf +# git -C ~/.asdf checkout "$(git -C ~/.asdf describe --abbrev=0 --tags)" - # shellcheck source=/dev/null - source "$HOME/.asdf/asdf.sh" +# # shellcheck source=/dev/null +# source "$HOME/.asdf/asdf.sh" - asdf plugin-add python - asdf install python latest - asdf global python latest -fi +# asdf plugin-add python +# asdf install python latest +# asdf global python latest +# fi # Init Starship eval "$(starship init bash)" \ No newline at end of file