fix: guarded homeshick install in an if statement
This commit is contained in:
parent
8eec963c2d
commit
d9e42c210f
27
init.sh
27
init.sh
|
@ -15,21 +15,24 @@ for app in git curl; do
|
||||||
done
|
done
|
||||||
|
|
||||||
## Install homeshick
|
## Install homeshick
|
||||||
git clone https://github.com/andsens/homeshick.git "$HOME/.homesick/repos/homeshick"
|
if [[ ! -d $HOME/.homesick ]]; then
|
||||||
# shellcheck source=/dev/null
|
git clone https://github.com/andsens/homeshick.git "$HOME/.homesick/repos/homeshick"
|
||||||
source "$HOME/.homesick/repos/homeshick/homeshick.sh"
|
# shellcheck source=/dev/null
|
||||||
source $HOME/.homesick/repos/homeshick/completions/homeshick-completion.bash
|
source "$HOME/.homesick/repos/homeshick/homeshick.sh"
|
||||||
|
source $HOME/.homesick/repos/homeshick/completions/homeshick-completion.bash
|
||||||
|
|
||||||
## clone home, then set it to ssh afterwards
|
## clone home, then set it to ssh afterwards
|
||||||
## This means we need our keys before we can make further actions - disable the ssh behavior for now
|
## This means we need our keys before we can make further actions - disable the ssh behavior for now
|
||||||
homeshick --batch clone https://stash.firekitten.net/kittyfangs/dotfiles.git
|
homeshick --batch clone https://stash.firekitten.net/kittyfangs/dotfiles.git
|
||||||
## git -C "$HOME/.homesick/repos/dotfiles" remote set-url origin git@stash.firekitten.net:kittyfangs/dotfiles
|
## git -C "$HOME/.homesick/repos/dotfiles" remote set-url origin git@stash.firekitten.net:kittyfangs/dotfiles
|
||||||
|
|
||||||
## Lets get the powerhsell version since we are initing in bash
|
## Lets get the powerhsell version since we are initing in bash
|
||||||
homeshick --batch clone https://github.com/KitKat31337/homepsick.git
|
homeshick --batch clone https://github.com/KitKat31337/homepsick.git
|
||||||
|
|
||||||
|
## Link everything
|
||||||
|
homeshick link --force
|
||||||
|
fi
|
||||||
|
|
||||||
## Link everything
|
|
||||||
homeshick link --force
|
|
||||||
|
|
||||||
if ! command -v brew &>/dev/null; then
|
if ! command -v brew &>/dev/null; then
|
||||||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
||||||
|
|
Loading…
Reference in New Issue