Skip to content

Commit

Permalink
feat(make): add targets to configure dev env
Browse files Browse the repository at this point in the history
Signed-off-by: Cameron Smith <cameron.ray.smith@gmail.com>
  • Loading branch information
cameronraysmith committed Jan 3, 2024
1 parent 2283f11 commit 10aa781
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,27 @@ setup_dev: install_direnv install_nix
echo "trusted-users = root $$USER" | sudo tee -a /etc/nix/nix.conf && sudo pkill nix-daemon && \
cachix use devenv

.PHONY: devshell
devshell: ## Enter nix devshell. See use_flake in `direnv stdlib`.
./scripts/flake

cdirenv: ## !!Enable direnv in zshrc.!!
@if ! grep -q 'direnv hook zsh' "${HOME}/.zshrc"; then \
printf '\n%s\n' 'eval "$$(direnv hook zsh)"' >> "${HOME}/.zshrc"; \
fi

cstarship: ## !!Enable starship in zshrc.!!
@if ! grep -q 'starship init zsh' "${HOME}/.zshrc"; then \
printf '\n%s\n' 'eval "$$(starship init zsh)"' >> "${HOME}/.zshrc"; \
fi

catuin: ## !!Enable atuin in zshrc.!!
@if ! grep -q 'atuin init zsh' "${HOME}/.zshrc"; then \
printf '\n%s\n' 'eval "$$(atuin init zsh)"' >> "${HOME}/.zshrc"; \
fi

czsh: ## !!Enable zsh with command line info and searchable history.!!
czsh: catuin cstarship cdirenv

#-------------
# system / dev
Expand Down

0 comments on commit 10aa781

Please sign in to comment.