1
1
Fork 0

Compare commits

..

No commits in common. "4c8316fccc7bcbb286adcda8aa255dfde9f1f564" and "4529d8ff121644cb60479e6eb03d2494d521559a" have entirely different histories.

2 changed files with 24 additions and 44 deletions

View file

@ -20,35 +20,27 @@ in {
}; };
${config.custom.username}.programs.fish = let ${config.custom.username}.programs.fish = let
# Expand abbreviations anywhere in the shell any = expansion: {
#?? sudo ABBREVIATION
anywhere = expansion: {
expansion = "${expansion}%";
position = "anywhere";
setCursor = true;
};
# Set cursor position to %
#?? % | EXPANSION
cursor = expansion: {
inherit expansion; inherit expansion;
setCursor = true; position = "anywhere";
}; };
in { in {
enable = true; enable = true;
shellAbbrs = { shellAbbrs = {
"/e" = anywhere "/etc/%"; # Expand abbreviations anywhere in the shell
"/en" = anywhere "/etc/nixos/%"; #?? sudo ABBREVIATION
"/h" = anywhere "~/%"; "/e" = any "/etc";
"/hd" = anywhere "~/.dev/%"; "/en" = any "/etc/nixos";
"/n" = anywhere "/nix/%"; "/h" = any "~";
"/nv" = anywhere "/nix/var/%"; "/hd" = any "~/.dev";
"/nvn" = anywhere "/nix/var/nix/%"; "/n" = any "/nix";
"/nvnp" = anywhere "/nix/var/nix/profiles/%"; "/nv" = any "/nix/var";
"/nvnps" = anywhere "/nix/var/nix/profiles/system/%"; "/nvn" = any "/nix/var/nix";
"/r" = anywhere "/run/%"; "/nvnp" = any "/nix/var/nix/profiles";
"/rc" = anywhere "/run/current-system/%"; "/nvnps" = any "/nix/var/nix/profiles/system";
"/r" = any "/run";
"/rc" = any "/run/current-system";
reboot = "sudo systemctl reboot"; reboot = "sudo systemctl reboot";
restart = "sudo systemctl reboot"; restart = "sudo systemctl reboot";
@ -157,26 +149,15 @@ in {
k = "kitten"; k = "kitten";
ks = "kitten ssh"; ks = "kitten ssh";
n = "nix"; n = "nixos";
nb = "nix build"; nb = "nixos build";
nf = "nix flake"; nbb = "nixos build boot";
nfi = "nix flake info"; nbs = "nixos build switch";
nfl = "nix flake lock"; nbt = "nixos build test";
nfu = "nix flake update"; nd = "nixos diff";
ngl = cursor "nix run github:nix-community/nixGL --impure -- %"; ng = "nixos generate";
nr = "nix run nixpkgs#"; nl = "nixos list";
ns = "nix shell nixpkgs#"; nr = "nixos repl";
nt = "nix store";
no = "nixos";
nob = "nixos build";
nobb = "nixos build boot";
nobs = "nixos build switch";
nobt = "nixos build test";
nod = "nixos diff";
nog = "nixos generate";
nol = "nixos list";
nor = "nixos repl";
sc = "systemctl"; sc = "systemctl";
scp = "sudo systemctl poweroff"; scp = "sudo systemctl poweroff";

View file

@ -132,7 +132,6 @@ in {
icon-library # Icon viewer icon-library # Icon viewer
identity # Compare media identity # Compare media
impression # Image writer impression # Image writer
keyguard # Bitwarden client
kooha # Screen recorder kooha # Screen recorder
logseq # Knowledge base logseq # Knowledge base
loupe # Image viewer loupe # Image viewer