meta: Move cli tools to fish module

This results in a consistent environment when using any given shell.
Note that adding a package to $PATH instead of just referencing it where
it's needed is useful since otherwise the man pages are inaccessible.
This commit is contained in:
Donovan Glover 2023-06-12 16:59:59 -04:00
parent f5d7fba157
commit 44057b2579
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
2 changed files with 12 additions and 10 deletions

View File

@ -4,16 +4,24 @@ let VARIABLES = import ../../src/variables.nix; in {
users.defaultUserShell = pkgs.fish;
environment.shells = [ pkgs.fish ];
environment.systemPackages = with pkgs; [
wget
jq
fd
fzf
ripgrep
];
programs.fish = {
enable = true;
shellAliases = {
ls = "exa --group-directories-first -I 'lost+found'";
tree = "exa --group-directories-first --all --long --tree -I 'node_modules|.git|public|lost+found'";
ls = "${pkgs.exa}/bin/exa --group-directories-first -I 'lost+found'";
tree = "${pkgs.exa}/bin/exa --group-directories-first --all --long --tree -I 'node_modules|.git|public|lost+found'";
mv = "mv -i";
cp = "cp -ia";
rg = "rg --max-columns=2000 --smart-case";
yarn = "yarn --emoji true";
rg = "${pkgs.ripgrep}/bin/rg --max-columns=2000 --smart-case";
yarn = "${pkgs.yarn}/bin/yarn --emoji true";
};
shellAbbrs = {

View File

@ -83,11 +83,6 @@ let VARIABLES = import ./variables.nix; in {
keepassxc
libreoffice
wget
jq
exa
fd
fzf
gdu
fdupes
mediainfo
@ -97,7 +92,6 @@ let VARIABLES = import ./variables.nix; in {
sox
httpie
p7zip
ripgrep
rsync
unar
genact