2020-06-03 22:29:05 +02:00
|
|
|
{ pkgs, lib, ... }:
|
|
|
|
|
|
|
|
{
|
2023-10-23 20:51:21 +02:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|