refactoring shell stuff

This commit is contained in:
Matt Nish-Lapidus 2025-07-01 12:19:01 -04:00
parent b2ce760a59
commit 8f62ae3202
8 changed files with 86 additions and 83 deletions

View file

@ -1,18 +1,16 @@
{ config, lib, pkgs, ... }:
{
home.packages = with pkgs; [
fishPlugins.foreign-env
fishPlugins.fzf-fish
fishPlugins.bass
fishPlugins.autopair
fishPlugins.colored-man-pages
];
programs.fish = {
enable = true;
shellAliases = {
"em" = "emacsclient -n -r";
"emm" = "emacsclient -nw";
"mkdir" = "mkdir -pv";
"gtr" = "gtrash restore";
"rmr" = "gtrash restore";
"rm" = "gtrash put";
"lg" = "lazygit";
"cat" = "bat --plain";
};
# change fzf variable search to C-M-v
interactiveShellInit = ''
@ -31,4 +29,14 @@
}
];
};
home.file.".config/fish/functions" = {
source = ./functions;
recursive = true;
};
home.file.".config/fish/completions" = {
source = ./completions;
recursive = true;
};
}