twtxt-aliases.sh 662 B

1234567891011121314151617181920212223242526272829
  1. # Aliases for using twtxt
  2. #
  3. # See https://github.com/buckket/twtxt
  4. # Also see https://github.com/prologic/twtxt and https://twtxt.net/
  5. #
  6. # twtxt timeline
  7. alias twl='twtxt timeline --ascending'
  8. # twtxt publish
  9. alias twp='scp ~/twtxt.txt gmj@port111.com:~/public_html/george/'
  10. # twtxt get current
  11. alias twg='scp gmj@port111.com:~/public_html/george/twtxt.txt ~/'
  12. function twtp () {
  13. # twtxt twit and post
  14. twt "$*"
  15. twp
  16. }
  17. function twt() {
  18. # TODO Mitigate possible cross-sytem conflicts. git pull here, add/commit/push after?
  19. twg && twtxt tweet "$1" && twp || echo failed to tweet
  20. }
  21. # make sure twtxt is on the path
  22. pathlast ~/.local/bin/