Find a file
Oliver Davies 6082de62b0 Look for .ignored/run when running commands
Make the `run` command cleverer by also searching for a `.ignored/run`
file, following the convention of always ignoring a `.ignored` directory
from Git.

This allows me to have a local `run` file that doesn't need to be
committed and pushed to the repo (e.g. it's too specific to me), and
being able to keep it outside of the root of the project directory where
it could be committed accidentally.

A similar approach was done by Andreas Möller using Makefiles in this
article:

https://localheinz.com/articles/2020/05/07/using-makefiles-in-projects-where-i-can-not-use-them

With this function, the `.ignored/run` file is executed if it's found
and exits with the status code of the command.

If not, it will fall back to using `./run` as before.

I considered reversing these and checking for `./run` first as there
could be a performance benefit but, if neither file is found, I want the
error to show `./run` and not `.ignored/run` as that's the main use
case.
2024-07-31 16:40:25 +01:00
bin Fix traefik repo path 2024-07-14 18:38:00 +01:00
config awesome: change font size 2024-07-23 21:32:25 +01:00
lib Look for .ignored/run when running commands 2024-07-31 16:40:25 +01:00
.envrc Use direnv 2024-02-13 21:32:44 +00:00
.gitignore build: ignore Nix files and directories 2023-11-07 09:10:40 +00:00
.markdownlint.yaml Update CHANGELOG 2024-06-11 22:14:50 +01:00
CHANGELOG.md Add move-firefox-screenshots script 2024-06-12 09:01:46 +01:00
flake.lock Update flake lock dependencies 2024-07-28 13:29:37 +01:00
flake.nix Remove nixedo host 2024-07-22 18:09:50 +01:00
logo.txt feat(zsh): show ASCII logo in a new terminal 2023-08-12 19:53:07 +01:00
README.md docs(README): add Dan Leech dotfiles link 2023-11-24 18:31:09 +00:00
run Replace justfile with run 2024-07-08 22:13:06 +01:00
stylua.toml style(nvim): run stylua 2023-09-04 11:05:13 +01:00

dotfiles

Cross-platform development environments for opdavies using Nix, NixOS and Home Manager.

Why did you move from Ansible?

TBD.

Why NixOS?

TBD.

Why Home Manager?

TBD.

NixOS vs WSL2 (Windows)

TBD.

Inspiration