d98e47cbcf
Change-Id: Ibcf21617a1cee66c157644712918bcd9bb390228 Reviewed-on: https://cl.tvl.fyi/c/depot/+/9827 Tested-by: BuildkiteCI Reviewed-by: grfn <grfn@gws.fyi>
27 lines
520 B
Nix
27 lines
520 B
Nix
{ pkgs, lib, ... }:
|
|
|
|
{
|
|
imports = [
|
|
./lib/zshFunctions.nix
|
|
];
|
|
|
|
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) $@";
|
|
};
|
|
};
|
|
}
|