mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-12-15 19:30:51 +01:00
Makefile: Add code-extensions target
Now it is possible to run `make code-extensions` to install all the extensions I use for the editor Code.
This commit is contained in:
parent
c4b7b69f66
commit
e6d88d57ad
6
Makefile
6
Makefile
@ -8,6 +8,8 @@
|
||||
# make prune Removes stale links
|
||||
|
||||
verbose ?= 2
|
||||
NS_CODE_EXTENSIONS := dbaeumer.vscode-eslint EditorConfig.EditorConfig faustinoaq.crystal-lang \
|
||||
naumovs.color-highlight PKief.material-icon-theme vscodevim.vim
|
||||
NS_REPO_PATH := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
||||
NS_STOW_OPTIONS := --dir="${NS_REPO_PATH}" --target="${HOME}" --no-folding --verbose=${verbose}
|
||||
NS_STOW_PACKAGES := $(wildcard */)
|
||||
@ -38,6 +40,10 @@ uninstall:
|
||||
prune:
|
||||
@$(call ${NS_STOW_COMMAND},R)
|
||||
|
||||
.PHONY: code-extensions
|
||||
code-extensions:
|
||||
@$(foreach extension,${NS_CODE_EXTENSIONS},code --install-extension ${extension} --force;)
|
||||
|
||||
.PHONY: enable-mpd
|
||||
enable-mpd:
|
||||
@systemctl --user enable --now mpd.service
|
||||
|
Loading…
Reference in New Issue
Block a user