aboutsummaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
authorNicholas Rodrigues Lordello <[email protected]>2022-10-03 13:21:22 +0200
committerNicholas Rodrigues Lordello <[email protected]>2023-12-12 23:30:24 +0100
commitceb07fa0f1ce2441d8438ee6b13ce9d02c97f6e2 (patch)
tree2cd90b9aa7d55f8ab8c62fb59a072e1997d782ff /install.sh
parent02236e7bfcd2a434d9d8ac19ebaf563790d0c376 (diff)
Tweaks to improve Codespaces compatibility
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh8
1 files changed, 3 insertions, 5 deletions
diff --git a/install.sh b/install.sh
index 7be3fc1..914714f 100755
--- a/install.sh
+++ b/install.sh
@@ -20,7 +20,7 @@ dotlink() {
gitinst() {
if [[ ! -e "$2" ]]; then
- local remote="[email protected]:$1.git"
+ local remote="https://github.com/$1"
git clone "$remote" "$2"
else
echo "skipping $1: '$2' already exists." >&2
@@ -35,8 +35,6 @@ gitinst \
"wbthomason/packer.nvim" \
"$HOME/.local/share/nvim/site/pack/packer/start/packer.nvim"
-if [ "$CODESPACES" = true ]; then
- # TODO(nlordell): Codespaces specific setup.
+if which nvim &>/dev/null; then
+ nvim --headless -c "autocmd User PackerComplete quitall" -c "PackerSync"
fi
-
-nvim --headless -c "autocmd User PackerComplete quitall" -c "PackerSync"