parent
5227e82c15
commit
d18476da73
16 changed files with 1 additions and 1 deletions
12
packages/todos/todos-edit.nix
Normal file
12
packages/todos/todos-edit.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
pkgs.writeShellApplication {
|
||||
name = "todos-edit";
|
||||
|
||||
text = ''
|
||||
TODOS_DIRECTORY="''${TODOS_DIRECTORY:-"$XDG_DOCUMENTS_DIR/todos"}"
|
||||
export TODOS_DIRECTORY
|
||||
|
||||
"$EDITOR" "$TODOS_DIRECTORY/$(date +%Y-%m-%d).txt";
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue