Shell improvements

- `nix-output-monitor`
- `zoxide`
- `zellij`
- `helix` as default editor
This commit is contained in:
Andrea Ciceri 2023-01-19 18:33:04 +01:00
parent 6792d0975d
commit ce2ee96025
No known key found for this signature in database
GPG key ID: A1FC89532D1C5654
4 changed files with 174 additions and 8 deletions

View file

@ -21,6 +21,10 @@
enableAliases = true;
};
programs.zoxide.enable = true;
programs.zellij.enable = true;
programs.fzf.enable = true;
programs.vim.enable = true;
@ -71,11 +75,18 @@
"emnw" = "emacsclient -c -nw";
"pass-clone" = "[ -d .password-store ] && echo 'Password store archive already exists' || git clone git@git.sr.ht:~zrsk/pass ~/.password-store";
"getpass" = "pass show $(find .password-store/ -name \"*.gpg\" | sed \"s/\\.password-store\\/\\(.*\\)\\.gpg$/\\1/g\" | fzf) | wl-copy; ((sleep 60 && wl-copy --clear) &)";
"n" = "nom";
};
loginExtra = "[[ -z $DISPLAY && $TTY = /dev/tty1 ]] && exec sway";
envExtra = ''
[ $TERM = "dumb" ] && unsetopt zle && PS1='$ ' # for Emacs TRAMP mode
'';
initExtra = ''
source ${pkgs.zsh-vi-mode}/share/zsh-vi-mode/zsh-vi-mode.plugin.zsh
'';
sessionVariables = {
EDITOR = "hx";
};
};
home.packages = with pkgs; [
@ -84,5 +95,6 @@
dig.dnsutils
zsh-completions
nix-zsh-completions
nom
];
}