Skip to content

Instantly share code, notes, and snippets.

View dkaslovsky's full-sized avatar

Dan Kaslovsky dkaslovsky

  • Boulder, Colorado, USA
View GitHub Profile
@dkaslovsky
dkaslovsky / textnote_functions
Last active November 7, 2021 21:43
Command line functions to go with github.com/dkaslovsky/textnote
alias tn='textnote'
tnlatest() {
ls -l $TEXTNOTE_DIR | grep -v 'archive' | awk '{print $9}' | sort -r | head -n 1 | cut -f 1 -d '.'
}
tnls() {
ls -la ${TEXTNOTE_DIR}
}
@dkaslovsky
dkaslovsky / calendartasks_functions
Last active November 7, 2021 21:47
Command line functions to go with github.com/dkaslovsky/calendar-tasks
alias ct="calendar-tasks"
# uses ripgrep to search but standard grep -r should work as well
ctsearch() {
rg -i -N $1 "$CALENDAR_TASKS_DIR/sources/"
}
ctls() {
ls "$CALENDAR_TASKS_DIR/sources/"
}