dotfiles

Cross platform dotfiles for linux, mac and windows
git clone git@getsh.org:dotfiles.git
Log | Files | Refs

call (315B)


      1 command -v jq || exit 1
      2 export TERMUX_CONTACTS_LIST="$(termux-contact-list)"
      3 
      4 export CNA="$(echo "${TERMUX_CONTACTS_LIST}" | jq '.[] | .name' | fzf)"
      5 
      6 CONTACT_NUMBER="$(echo "${TERMUX_CONTACTS_LIST}" | jq -r ".[] | select(.name==$CNA) | .number")"
      7 echo "${CONTACT_NUMBER}"
      8 termux-telephony-call "${CONTACT_NUMBER}"