Skip to content

Commit

Permalink
Add uninstall to makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
deathbeam committed Feb 4, 2024
1 parent 08c7655 commit 952265b
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,21 @@ default: update link install
clean:
find ~ -xtype l -print -delete

install:
touch /tmp/cmd && chmod u+x /tmp/cmd
mkdir -p ~/.vim/undodir
~/.fzf/install --all --no-update-rc --no-completion --no-bash --no-fish
gh extension install github/gh-copilot || true
nvim --headless +MasonUpdate +MasonToolsInstallSync +MasonToolsUpdateSync +TSUpdateSync +'helptags ALL' +qall

link:
stow --target ~ --restow `ls -d */` || true
stow --target ~ --restow `ls -d */` 2> >(grep -v 'BUG in find_stowed_path? Absolute/relative mismatch' 1>&2)

update:
git submodule update --init --recursive
git submodule sync --recursive
git submodule update --recursive --remote
nvim --headless +MasonUpdate +MasonToolsInstallSync +MasonToolsUpdateSync +TSUpdateSync +'helptags ALL' +qall

install:
mkdir -p ~/.vim/undodir
~/.fzf/install --all --no-update-rc --no-completion --no-bash --no-fish
gh extension install github/gh-copilot

uninstall:
~/.fzf/uninstall
gh extension remove github/gh-copilot || true
stow --target ~ --delete `ls -d */` 2> >(grep -v 'BUG in find_stowed_path? Absolute/relative mismatch' 1>&2)

0 comments on commit 952265b

Please sign in to comment.