bootstrap p10k
now requires user input before remote is changed
This commit is contained in:
+13
-2
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/zsh
|
||||||
#
|
#
|
||||||
# YADM Bootstrap
|
# YADM Bootstrap
|
||||||
# @CharlesDanesi
|
# @CharlesDanesi
|
||||||
@@ -74,5 +74,16 @@ if ! [ -d "$HOME/.zsh/zsh-vi-mode" ]; then
|
|||||||
git clone https://github.com/jeffreytse/zsh-vi-mode.git $HOME/.zsh/zsh-vi-mode
|
git clone https://github.com/jeffreytse/zsh-vi-mode.git $HOME/.zsh/zsh-vi-mode
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Setting yadm repo origin to SSH"
|
if ! [ -d "$HOME/.zsh/powerlevel10k" ]; then
|
||||||
|
echo "Installing powerlevel10k"
|
||||||
|
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git $HOME/.zsh/powerlevel10k
|
||||||
|
fi
|
||||||
|
|
||||||
|
read -qs "ans?Change yadm origin remote to SSH url? (y/N) "
|
||||||
|
case $ans in
|
||||||
|
y)
|
||||||
|
echo "\n\nSetting remote origin to use SSH"
|
||||||
yadm remote set-url origin "git@github.com:cdanesi/dotfiles.git"
|
yadm remote set-url origin "git@github.com:cdanesi/dotfiles.git"
|
||||||
|
;;
|
||||||
|
*) ;;
|
||||||
|
esac
|
||||||
|
|||||||
Reference in New Issue
Block a user