cal command
This commit is contained in:
parent
1436fc874d
commit
03579f2aab
2 changed files with 2 additions and 1 deletions
|
@ -30,6 +30,7 @@ alias \
|
||||||
# Command shortcuts
|
# Command shortcuts
|
||||||
alias \
|
alias \
|
||||||
mgr-all="mgr pacman_upgrade apt_upgrade flatpak_update distrobox_update pip_update configs passmgr" \
|
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.*$'" \
|
df-short="df -h | grep -v '\s/dev.*$\|\s/run.*$\|\s/boot.*$'" \
|
||||||
wacom-setup-menu="wacom-setup menu" \
|
wacom-setup-menu="wacom-setup menu" \
|
||||||
swayimg="swayimg -s fit -w 000000 -m" \
|
swayimg="swayimg -s fit -w 000000 -m" \
|
||||||
|
|
|
@ -11,7 +11,7 @@ opt=$(fzf --layout=reverse-list --cycle --preview 'p {}' --height=50% --border t
|
||||||
note() {
|
note() {
|
||||||
NOTES_DIR="$HOME/Nextcloud/Notes"
|
NOTES_DIR="$HOME/Nextcloud/Notes"
|
||||||
# Just edit today's note if no argument is given
|
# 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" ] &&
|
[ -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"
|
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
|
# 'list' arg will list notes either with fzf or regular ls
|
||||||
|
|
Loading…
Reference in a new issue