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
# Expand abbreviations anywhere in the shell
#?? sudo ABBREVIATION
anywhere = expansion: {
expansion = "${expansion}%";
position = "anywhere";
setCursor = true;
};
# Set cursor position to %
#?? % | EXPANSION
cursor = expansion: {
any = expansion: {
inherit expansion;
setCursor = true;
position = "anywhere";
};
in {
enable = true;
shellAbbrs = {
"/e" = anywhere "/etc/%";
"/en" = anywhere "/etc/nixos/%";
"/h" = anywhere "~/%";
"/hd" = anywhere "~/.dev/%";
"/n" = anywhere "/nix/%";
"/nv" = anywhere "/nix/var/%";
"/nvn" = anywhere "/nix/var/nix/%";
"/nvnp" = anywhere "/nix/var/nix/profiles/%";
"/nvnps" = anywhere "/nix/var/nix/profiles/system/%";
"/r" = anywhere "/run/%";
"/rc" = anywhere "/run/current-system/%";
# Expand abbreviations anywhere in the shell
#?? sudo ABBREVIATION
"/e" = any "/etc";
"/en" = any "/etc/nixos";
"/h" = any "~";
"/hd" = any "~/.dev";
"/n" = any "/nix";
"/nv" = any "/nix/var";
"/nvn" = any "/nix/var/nix";
"/nvnp" = any "/nix/var/nix/profiles";
"/nvnps" = any "/nix/var/nix/profiles/system";
"/r" = any "/run";
"/rc" = any "/run/current-system";
reboot = "sudo systemctl reboot";
restart = "sudo systemctl reboot";
@ -157,26 +149,15 @@ in {
k = "kitten";
ks = "kitten ssh";
n = "nix";
nb = "nix build";
nf = "nix flake";
nfi = "nix flake info";
nfl = "nix flake lock";
nfu = "nix flake update";
ngl = cursor "nix run github:nix-community/nixGL --impure -- %";
nr = "nix run nixpkgs#";
ns = "nix shell nixpkgs#";
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";
n = "nixos";
nb = "nixos build";
nbb = "nixos build boot";
nbs = "nixos build switch";
nbt = "nixos build test";
nd = "nixos diff";
ng = "nixos generate";
nl = "nixos list";
nr = "nixos repl";
sc = "systemctl";
scp = "sudo systemctl poweroff";

View file

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