From 5477cc1b2a71b11810e4dee195dea3f74a9942d3 Mon Sep 17 00:00:00 2001 From: Griffin Smith Date: Mon, 8 Jun 2020 10:19:26 -0400 Subject: some twitter functions --- home/modules/twitter.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'home/modules/twitter.nix') diff --git a/home/modules/twitter.nix b/home/modules/twitter.nix index 9a6dc969b8..3cb2e90adc 100644 --- a/home/modules/twitter.nix +++ b/home/modules/twitter.nix @@ -9,7 +9,15 @@ TWITTER_WHOAMI = "glittershark1"; }; - programs.zsh.shellAliases = { - "mytl" = "t tl $TWITTER_WHOAMI"; + programs.zsh = { + shellAliases = { + "mytl" = "t tl $TWITTER_WHOAMI"; + }; + + functions = { + favelast = "t fave $(t tl -l $1 | head -n1 | cut -d' ' -f1)"; + rtlast = "t rt $(t tl -l $1 | head -n1 | cut -d' ' -f1)"; + tthread = "t reply $(t tl -l $TWITTER_WHOAMI | head -n1 | cut -d' ' -f1) $@"; + }; }; } -- cgit 1.4.1