fix: pull and link repos if homeshick already installed
This commit is contained in:
parent
d9e42c210f
commit
4eb9fda73b
27
init.sh
27
init.sh
|
@ -31,6 +31,15 @@ if [[ ! -d $HOME/.homesick ]]; then
|
||||||
|
|
||||||
## Link everything
|
## Link everything
|
||||||
homeshick link --force
|
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
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
@ -44,17 +53,17 @@ if ! command -v brew &>/dev/null; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
## All my asdf
|
## All my asdf
|
||||||
if [[ ! -d $HOME/.asdf ]]; then
|
# if [[ ! -d $HOME/.asdf ]]; then
|
||||||
git clone https://github.com/asdf-vm/asdf.git ~/.asdf
|
# git clone https://github.com/asdf-vm/asdf.git ~/.asdf
|
||||||
git -C ~/.asdf checkout "$(git -C ~/.asdf describe --abbrev=0 --tags)"
|
# git -C ~/.asdf checkout "$(git -C ~/.asdf describe --abbrev=0 --tags)"
|
||||||
|
|
||||||
# shellcheck source=/dev/null
|
# # shellcheck source=/dev/null
|
||||||
source "$HOME/.asdf/asdf.sh"
|
# source "$HOME/.asdf/asdf.sh"
|
||||||
|
|
||||||
asdf plugin-add python
|
# asdf plugin-add python
|
||||||
asdf install python latest
|
# asdf install python latest
|
||||||
asdf global python latest
|
# asdf global python latest
|
||||||
fi
|
# fi
|
||||||
|
|
||||||
# Init Starship
|
# Init Starship
|
||||||
eval "$(starship init bash)"
|
eval "$(starship init bash)"
|
Loading…
Reference in New Issue