diff options
| author | Nicholas Rodrigues Lordello <[email protected]> | 2022-12-11 23:09:52 +0100 |
|---|---|---|
| committer | Nicholas Rodrigues Lordello <[email protected]> | 2023-12-12 23:30:25 +0100 |
| commit | ca2bb41070a110895cd5a66a2d604b0eaf8b6c4d (patch) | |
| tree | 2fe428cb76767fd0dca3b3366f57ad5caa463b94 /install.sh | |
| parent | 7ef737c7a91fbf6f70896cd7a54a77fb1d1525e5 (diff) | |
Initial version of Codespace setup script
Diffstat (limited to 'install.sh')
| -rwxr-xr-x | install.sh | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -19,9 +19,11 @@ dotlink() { } gitinst() { - if [[ ! -e "$2" ]]; then - local remote="https://github.com/$1" - git clone "$remote" "$2" + local remote="https://github.com/$1" + local dst="$HOME/$2" + + if [ ! -e "$dst" ]; then + git clone "$remote" "$dst" else echo "skipping $1: '$2' already exists." >&2 fi @@ -33,7 +35,7 @@ dotlink "config/emacs" dotlink "config/nvim" gitinst \ "wbthomason/packer.nvim" \ - "$HOME/.local/share/nvim/site/pack/packer/start/packer.nvim" + ".local/share/nvim/site/pack/packer/start/packer.nvim" if which nvim &>/dev/null; then nvim --headless -c "autocmd User PackerComplete quitall" -c "PackerSync" |
