mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
26 lines
500 B
Nix
26 lines
500 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}: {
|
|
programs.fish = {
|
|
shellAbbrs = lib.mergeAttrsList [
|
|
(lib.optionalAttrs pkgs.stdenv.isLinux {
|
|
"," = "nix-shell --command fish -p";
|
|
})
|
|
];
|
|
|
|
shellAliases = lib.mergeAttrsList [
|
|
{
|
|
rm = "rm -I"; # idiot protection
|
|
tree = "tree -Cph";
|
|
}
|
|
|
|
(lib.optionalAttrs pkgs.stdenv.isLinux {
|
|
# idiot protection
|
|
chmod = "chmod --preserve-root";
|
|
chown = "chown --preserve-root";
|
|
})
|
|
];
|
|
};
|
|
}
|