Configure elnudrop

This commit is contained in:
Elnu 2023-08-03 17:05:10 -07:00
parent 5b8dbadbb1
commit efa926d33f
11 changed files with 281 additions and 166 deletions

34
modules/bash/default.nix Normal file
View file

@ -0,0 +1,34 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [ pfetch fortune ];
programs.bash = {
enable = true;
shellAliases = {
g = "git";
ga = "g add";
gc = "g commit -m ";
gu = "ga . && gc";
gs = "g status";
gi = "g init";
gp = "g push";
gf = "g pull";
gC = "g clone";
goops = "g reset --soft HEAD^";
r = "ranger";
rm = "trash-put";
emacs = "emacsclient -nw";
# Make clear command clear scrollback
# https://github.com/kovidgoyal/kitty/issues/268#issuecomment-355765686
clear = "printf '\\E[H\\E[3J'";
};
bashrcExtra = with import ./bashrc.nix; ''
${bashrcExtra}
if [ -z $TERMINAL_STARTED ] && [ -z $IN_NIX_SHELL ]; then
${greeter}
fi
'';
};
}