Browse Source

Update twt alias

George Jones 3 years ago
parent
commit
2c999497ff
2 changed files with 8 additions and 7 deletions
  1. 1 0
      .gitignore
  2. 7 7
      rc.local/twtxt-aliases.sh

+ 1 - 0
.gitignore

@@ -0,0 +1 @@
+.config/twtxt/cache

+ 7 - 7
rc.local/twtxt-aliases.sh

@@ -7,13 +7,6 @@
 # twtxt timeline
 alias twl='twtxt timeline --ascending'
 
-# twtxt twit
-#
-# TODO Mitigate possible cross-sytem conflicts.  git pull here, add/commit/push after?
-#
-
-alias twt='twg && twtxt tweet && twp || echo failed to tweet'
-
 # twtxt publish
 alias twp='scp ~/twtxt.txt gmj@port111.com:~/public_html/george/'
 
@@ -25,3 +18,10 @@ function twtp () {
     twt "$*"
     twp
 }
+
+function twt() {
+    # TODO Mitigate possible cross-sytem conflicts.  git pull here, add/commit/push after?
+    twg && twtxt tweet "$1" && twp || echo failed to tweet
+}
+
+