home/fish: add more shellabbrs
This commit is contained in:
parent
be96257cd6
commit
f3c554e51d
1 changed files with 48 additions and 28 deletions
|
@ -19,35 +19,55 @@
|
|||
end
|
||||
'';
|
||||
|
||||
plugins = [
|
||||
{
|
||||
name = "autopair";
|
||||
inherit (pkgs.fishPlugins.autopair) src;
|
||||
}
|
||||
{
|
||||
name = "done";
|
||||
inherit (pkgs.fishPlugins.done) src;
|
||||
}
|
||||
{
|
||||
name = "puffer";
|
||||
inherit (pkgs.fishPlugins.puffer) src;
|
||||
}
|
||||
];
|
||||
plugins =
|
||||
lib.map
|
||||
(f: {
|
||||
name = f.pname;
|
||||
inherit (f) src;
|
||||
})
|
||||
(
|
||||
with pkgs.fishPlugins;
|
||||
[
|
||||
autopair
|
||||
done
|
||||
puffer
|
||||
]
|
||||
);
|
||||
|
||||
shellAbbrs = {
|
||||
shellAbbrs =
|
||||
let
|
||||
cursor = f: {
|
||||
setCursor = true;
|
||||
expansion = f;
|
||||
};
|
||||
in
|
||||
{
|
||||
gi = "gitui";
|
||||
n = "nvim";
|
||||
p = "powerprofilesctl";
|
||||
s = "nh os switch";
|
||||
v = "nvim";
|
||||
|
||||
# TODO: maybe fishPlugins.fish-git-abbr?
|
||||
g = "git";
|
||||
ga = "git add";
|
||||
gc = "git commit -m";
|
||||
gac = cursor "git commit -am '%'";
|
||||
gc = cursor "git commit -m '%'";
|
||||
gca = "git commit --amend";
|
||||
gd = "git diff";
|
||||
gds = "git diff --staged";
|
||||
gl = "git log";
|
||||
gp = "git push";
|
||||
gp = "git pull";
|
||||
gpu = "git push";
|
||||
gr = "git rebase -i --autosquash";
|
||||
|
||||
n = "nix";
|
||||
nb = cursor "nix build nixpkgs#%";
|
||||
nr = cursor "nix run nixpkgs#%";
|
||||
ns = cursor "nix shell nixpkgs#%";
|
||||
nbb = "nix-build -A";
|
||||
nf = "nix fmt";
|
||||
nu = "nix flake update";
|
||||
nv = "nix eval";
|
||||
};
|
||||
|
||||
functions =
|
||||
|
|
Loading…
Reference in a new issue