tvl-depot/home/modules/twitter.nix

24 lines
473 B
Nix
Raw Normal View History

2020-06-03 22:29:05 +02:00
{ pkgs, lib, ... }:
{
home.packages = with pkgs; [
t
];
home.sessionVariables = {
TWITTER_WHOAMI = "glittershark1";
};
2020-06-08 16:19:26 +02:00
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) $@";
};
2020-06-03 22:29:05 +02:00
};
}