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
|
||||
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)"
|
Loading…
Reference in New Issue