zsh.nix -> shell.nix

This commit is contained in:
kat witch 2021-09-02 19:06:37 +01:00
parent 22cefdca3c
commit c7d8d0b3d4
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
6 changed files with 12 additions and 11 deletions

View file

@ -64,6 +64,7 @@ in
'' else ''
''}
eval $(dircolors)
PROMPT_EOL_MARK='''
ZSH_TAB_TITLE_ADDITIONAL_TERMS='foot'
ZSH_TAB_TITLE_ENABLE_FULL_COMMAND=true
zmodload -i zsh/complist

View file

@ -4,7 +4,7 @@
imports = [
./vim
./rink.nix
./zsh.nix
./shell.nix
./rustfmt.nix
./packages.nix
./cookiecutter.nix

View file

@ -5,7 +5,7 @@
./gpg.nix
./weechat.nix
./email.nix
./zsh.nix
./shell.nix
./pass.nix
./taskwarrior.nix
./bitw.nix

View file

@ -0,0 +1,9 @@
{ config, lib, ... }: with lib;
{
programs.zsh = {
shellAliases = genAttrs ["radio" "tv"] (attr: {
"abby${attr}" = "mpv $(bitw get secrets/abby -f ${attr})";
});
};
}

View file

@ -1,9 +0,0 @@
{ config, ... }:
{
programs.zsh = {
shellAliases = {
abbyradio = "mpv $(pass secrets/abbyradio)";
};
};
}