better manage recipe
This commit is contained in:
parent
018a036601
commit
c1e0c65cf0
1 changed files with 9 additions and 2 deletions
|
|
@ -3,8 +3,15 @@
|
|||
let
|
||||
justfileText = ''
|
||||
[no-cd]
|
||||
manage:
|
||||
$EDITOR ~/.config/home-manager/home.nix
|
||||
manage module="":
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
if [ -z "{{module}}" ]; then
|
||||
$EDITOR ~/.config/home-manager/home.nix;
|
||||
else
|
||||
$EDITOR ~/.config/home-manager/modules/{{module}}.nix;
|
||||
fi
|
||||
|
||||
|
||||
[no-cd]
|
||||
switch:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue