feat: added wbp function
This commit is contained in:
parent
6939f3fe61
commit
6e7059129b
|
@ -0,0 +1,11 @@
|
|||
# vim: ft=sh
|
||||
|
||||
wbp() {
|
||||
blogdir="$HOME/docs/src/web/blog"
|
||||
|
||||
read -rp "What is your title? " title
|
||||
|
||||
path="$blogdir/content/$(date '+%Y-%m-%d')-$title.md"
|
||||
"$EDITOR" "$path"
|
||||
clear; printf "Your blogpost is saved at $path.\n"
|
||||
}
|
|
@ -9,4 +9,5 @@ export GPG_TTY=$(tty)
|
|||
export EDITOR="nvim" VISUAL="nvim"
|
||||
|
||||
source "$HOME/.config/bash/aliases"
|
||||
source "$HOME/.config/bash/functions"
|
||||
source "$HOME/.config/bash/prompt"
|
||||
|
|
Loading…
Reference in New Issue