tvl-depot/users/glittershark/system/home/modules/twitter.nix
Vincent Ambo 81564185e9 Add 'users/glittershark/system/' from commit '3b174300ae60f63f50427cde3bfd680fd3043c3a'
git-subtree-dir: users/glittershark/system
git-subtree-mainline: 85d82a9dc2
git-subtree-split: 3b174300ae
2020-06-16 01:02:24 +01:00

23 lines
473 B
Nix

{ pkgs, lib, ... }:
{
home.packages = with pkgs; [
t
];
home.sessionVariables = {
TWITTER_WHOAMI = "glittershark1";
};
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) $@";
};
};
}