.dotfiles/.config/zsh/functions/note.zsh

16 lines
178 B
Bash
Raw Permalink Normal View History

2022-03-14 19:21:46 +01:00
function note(){
cd ~/Notes
if [ "$1" != "" ]; then
cd $1
fi
if [[ -f "index.md" ]]; then
nvim index.md
else
nvim .
fi
}
compctl -/ -W ~/Notes/$@ note