tvl-depot/users/aspen/system/home/modules/twitter.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
520 B
Nix
Raw Normal View History

2020-06-03 22:29:05 +02:00
{ pkgs, lib, ... }:
{
imports = [
./lib/zshFunctions.nix
];
2020-06-03 22:29:05 +02:00
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
};
}