feat(hm/fish): add helper aliases and abbreviations for nix usage

This commit is contained in:
Alexandre Cavalheiro S. Tiago da Silva 2025-02-11 23:24:26 -03:00
parent fc3a2c48a9
commit c547f7ef4c
Signed by: wizardlink
GPG key ID: A5767B54367CFBDF

View file

@ -30,12 +30,21 @@
shellAbbrs = {
z = "zoxide";
pkg_expr = {
position = "anywhere";
expansion = "--expr 'with import <nixpkgs> { % }; '";
};
impure_cmd = {
position = "command";
expansion = "NIXPKGS_ALLOW_UNFREE=1 nix % --impure";
};
};
shellAliases = {
del = "trash_file";
dev = "nix develop -c fish";
doom = "~/.config/emacs/bin/doom";
repl = "NIXPKGS_ALLOW_UNFREE=1 nix repl --impure --extra-experimental-features 'flakes' nixpkgs.legacyPackages.x86_64-linux";
};
functions = {