mirror of
https://codeberg.org/leana8959/.files.git
synced 2026-02-01 14:39:39 +00:00
27 lines
477 B
Nix
27 lines
477 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}:
|
|
{
|
|
programs.fish = {
|
|
shellAbbrs = lib.mkMerge [
|
|
(lib.mkIf pkgs.stdenv.isLinux {
|
|
"," = "nix-shell --command $SHELL -p";
|
|
})
|
|
];
|
|
|
|
shellAliases = lib.mergeAttrsList [
|
|
{
|
|
rm = "rm -I"; # idiot protection
|
|
tree = "tree -Cph";
|
|
}
|
|
|
|
(lib.mkIf pkgs.stdenv.isLinux {
|
|
# idiot protection
|
|
chmod = "chmod --preserve-root";
|
|
chown = "chown --preserve-root";
|
|
})
|
|
];
|
|
};
|
|
}
|