Add 'users/glittershark/system/' from commit '3b174300ae'
git-subtree-dir: users/glittershark/system git-subtree-mainline:85d82a9dc2git-subtree-split:3b174300ae
This commit is contained in:
commit
81564185e9
49 changed files with 3802 additions and 0 deletions
23
users/glittershark/system/home/modules/twitter.nix
Normal file
23
users/glittershark/system/home/modules/twitter.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{ 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) $@";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue