mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-26 02:03:21 +01:00
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:
parent
f5d7fba157
commit
44057b2579
@ -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 = {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user