mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-06-19 17:28:49 +02: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;
|
users.defaultUserShell = pkgs.fish;
|
||||||
environment.shells = [ pkgs.fish ];
|
environment.shells = [ pkgs.fish ];
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
wget
|
||||||
|
jq
|
||||||
|
fd
|
||||||
|
fzf
|
||||||
|
ripgrep
|
||||||
|
];
|
||||||
|
|
||||||
programs.fish = {
|
programs.fish = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
ls = "exa --group-directories-first -I 'lost+found'";
|
ls = "${pkgs.exa}/bin/exa --group-directories-first -I 'lost+found'";
|
||||||
tree = "exa --group-directories-first --all --long --tree -I 'node_modules|.git|public|lost+found'";
|
tree = "${pkgs.exa}/bin/exa --group-directories-first --all --long --tree -I 'node_modules|.git|public|lost+found'";
|
||||||
mv = "mv -i";
|
mv = "mv -i";
|
||||||
cp = "cp -ia";
|
cp = "cp -ia";
|
||||||
rg = "rg --max-columns=2000 --smart-case";
|
rg = "${pkgs.ripgrep}/bin/rg --max-columns=2000 --smart-case";
|
||||||
yarn = "yarn --emoji true";
|
yarn = "${pkgs.yarn}/bin/yarn --emoji true";
|
||||||
};
|
};
|
||||||
|
|
||||||
shellAbbrs = {
|
shellAbbrs = {
|
||||||
|
@ -83,11 +83,6 @@ let VARIABLES = import ./variables.nix; in {
|
|||||||
keepassxc
|
keepassxc
|
||||||
libreoffice
|
libreoffice
|
||||||
|
|
||||||
wget
|
|
||||||
jq
|
|
||||||
exa
|
|
||||||
fd
|
|
||||||
fzf
|
|
||||||
gdu
|
gdu
|
||||||
fdupes
|
fdupes
|
||||||
mediainfo
|
mediainfo
|
||||||
@ -97,7 +92,6 @@ let VARIABLES = import ./variables.nix; in {
|
|||||||
sox
|
sox
|
||||||
httpie
|
httpie
|
||||||
p7zip
|
p7zip
|
||||||
ripgrep
|
|
||||||
rsync
|
rsync
|
||||||
unar
|
unar
|
||||||
genact
|
genact
|
||||||
|
Loading…
x
Reference in New Issue
Block a user