Add zsh functions for nix stuff

This commit is contained in:
Alexander Bantyev 2021-02-03 21:02:39 +03:00
parent 2f90786d28
commit 2034615561
Signed by: balsoft
GPG Key ID: E081FF12ADCB4AD5

View File

@ -47,13 +47,14 @@
}
];
shellAliases = {
"b" = ''nix-build "<nixpkgs>" --no-out-link -A'';
"b" = "nix build";
"p" = "nix-shell --run zsh -p";
"s" = "nix shell";
"ss" = "nix shell self#";
"e" = "nix edit";
"d" = "nix develop";
"ds" = "nix develop self#";
"e" = "nix edit self#";
"r" = "nix run";
"f" = "nix search";
"fs" = "nix search self";
"o" = "xdg-open";
"post" = ''curl -F"file=@-" https://0x0.st'';
"cat" = "${pkgs.bat}/bin/bat";
@ -95,6 +96,12 @@
preexec_functions+=( notifyosd-preexec )
XDG_DATA_DIRS=$XDG_DATA_DIRS:$GSETTINGS_SCHEMAS_PATH
function ss() { nix shell "self#$1" }
function es() { nix edit "self#$1" }
function bs() { nix build "self#$1" }
function rs() { nix run "self#$1" }
function is() { nix search "self#$1" }
PS1="$PS1
$ "
'';