cal command

This commit is contained in:
tavo-wasd 2024-02-21 17:27:40 -06:00
parent 1436fc874d
commit 03579f2aab
2 changed files with 2 additions and 1 deletions

View file

@ -30,6 +30,7 @@ alias \
# Command shortcuts
alias \
mgr-all="mgr pacman_upgrade apt_upgrade flatpak_update distrobox_update pip_update configs passmgr" \
cal='printf "\033[1m\033[34m=== %s ===\033[0m\n%s" "$(date -I)" "$(calcurse -a -t)"' \
df-short="df -h | grep -v '\s/dev.*$\|\s/run.*$\|\s/boot.*$'" \
wacom-setup-menu="wacom-setup menu" \
swayimg="swayimg -s fit -w 000000 -m" \

View file

@ -11,7 +11,7 @@ opt=$(fzf --layout=reverse-list --cycle --preview 'p {}' --height=50% --border t
note() {
NOTES_DIR="$HOME/Nextcloud/Notes"
# Just edit today's note if no argument is given
[ -z "$1" ] && cd "$NOTES_DIR" && "$EDITOR" "daily-notes/note-$DATE.md"
[ -z "$1" ] && cd "$NOTES_DIR" && "$EDITOR" "note-$DATE.md"
[ -e "$NOTES_DIR/daily-notes/note-$DATE.md" ] &&
printf "\n\033[1m\033[35mNote of the day:\033[0m \033[2mdaily-notes/\033[0mnote-$DATE.md\n"
# 'list' arg will list notes either with fzf or regular ls