dotfiles

personal configuration files and scripts
git clone https://tongong.net/git/dotfiles.git
Log | Files | Refs | README

diary-print (177B)


      1 #!/bin/bash
      2 FILE="$1"
      3 [[ -n "$FILE" ]] || FILE=$(diary-list)
      4 if [[ -z "$FILE" ]]; then
      5     echo "file not found!"
      6     exit 1
      7 fi
      8 gpg --decrypt --output "-" --yes --quiet "$FILE"