dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 5a4920d98875c090c0760cf20159c152c2d907e4
parent f16c365b0b72c024c333e70a717abc90527a858f
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Tue, 31 Dec 2019 22:39:43 +0100

Read telephone records directly by name

Diffstat:
M.local/bin/sendtext | 25+------------------------
1 file changed, 1 insertion(+), 24 deletions(-)

diff --git a/.local/bin/sendtext b/.local/bin/sendtext @@ -72,28 +72,5 @@ fi authstring="$(pass Online/twilio-account-sid):$(pass Online/twilio-auth-token)" read -r message for r in "$@"; do - case "$r" in - susan) - r="$(pass Telephone/susan)" - ;; - anders) - r="$(pass Telephone/anders)" - ;; - anders-us) - r="$(pass Telephone/anders-us)" - ;; - christian) - r="$(pass Telephone/christian)" - ;; - simon) - r="$(pass Telephone/simon)" - ;; - niels) - r="$(pass Telephone/niels)" - ;; - annegrethe) - r="$(pass Telephone/annegrethe)" - ;; - esac - send_twilio_text "$r" + send_twilio_text "$(pass Telephone/$r)" done