diff options
author | Peter | 2022-02-21 21:36:40 +0000 |
---|---|---|
committer | Peter | 2022-02-21 21:36:40 +0000 |
commit | 3bfd64b05beebc0ddf7fa54f21a75cc4ed4a4edb (patch) | |
tree | 9902ad27b33bc940df9e4694c63cfdb343fb9fa0 | |
parent | 21b1286ab7a0fd59a27eb6246e0da5e205208ab2 (diff) | |
download | dotfiles-3bfd64b05beebc0ddf7fa54f21a75cc4ed4a4edb.tar.gz dotfiles-3bfd64b05beebc0ddf7fa54f21a75cc4ed4a4edb.tar.bz2 dotfiles-3bfd64b05beebc0ddf7fa54f21a75cc4ed4a4edb.zip |
More robust todo function
-rw-r--r-- | .config/fish/config.fish | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.config/fish/config.fish b/.config/fish/config.fish index 4594c3e..1b08254 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -33,7 +33,7 @@ alias dotfiles='git --git-dir="$SYNCDIR/src/dotfiles" --work-tree="$HOME"' alias empties='find . -maxdepth 3 -mount -not -path "*/\.*" -empty' alias mpv-hdmi='mpv --fs --audio-device=alsa/hdmi:CARD=PCH,DEV=0' alias screenoff='sleep 0.5s && pkill -USR1 swayidle' -alias todo='$EDITOR (find "$SYNCDIR" -maxdepth 5 -type f -name 'todo.txt')' +alias todo='find "$SYNCDIR" -maxdepth 3 -type f -name 'todo.txt' -exec $EDITOR {} \;' alias vaultedit='find "$SYNCDIR" -maxdepth 5 -type f | fzf --preview "cat {}" --layout reverse | xargs -r -I{} "$EDITOR" "{}"' # Functions |