chezmoi/bin/executable_,drive

19 lines
330 B
Plaintext
Raw Normal View History

#!/bin/bash
VAULT="$HOME/Documents/vaults/kjuulh/"
DRIVE="/Users/kah/Library/CloudStorage/GoogleDrive-kah@lunar_app/My Drive/Vault"
set -e
files=$(fd . --full-path "$VAULT" -e md)
file=$(echo "$files" | fzf)
file_name=$(basename "$file")
echo "chosen file: $file_name"
pandoc -s "$file" -o "$DRIVE/${file_name%.md}.docx"