about summary refs log blame commit diff
path: root/home/modules/twitter.nix
blob: 3cb2e90adc34b898714c5388cb1f4ee8f8c14486 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                     









                                                                                   

    
{ 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) $@";
    };
  };
}