mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-26 11:55:36 +00:00
nix-shell-run shortcut
This commit is contained in:
parent
6d08491f1c
commit
076068aa85
@ -42,6 +42,13 @@
|
|||||||
body = "pbpaste | jq '.' | pbcopy"; # Need to fix for non-macOS
|
body = "pbpaste | jq '.' | pbcopy"; # Need to fix for non-macOS
|
||||||
};
|
};
|
||||||
ls = { body = "${pkgs.exa}/bin/exa $argv"; };
|
ls = { body = "${pkgs.exa}/bin/exa $argv"; };
|
||||||
|
nix-shell-run = {
|
||||||
|
body = ''
|
||||||
|
set program $argv[1]
|
||||||
|
commandline -r "nix-shell -p $program --run $program"
|
||||||
|
commandline -f execute
|
||||||
|
'';
|
||||||
|
};
|
||||||
note = {
|
note = {
|
||||||
description = "Edit or create a note";
|
description = "Edit or create a note";
|
||||||
argumentNames = "filename";
|
argumentNames = "filename";
|
||||||
@ -111,6 +118,7 @@
|
|||||||
|
|
||||||
# Nix
|
# Nix
|
||||||
ns = "nix-shell -p";
|
ns = "nix-shell -p";
|
||||||
|
nsr = "nix-shell-run";
|
||||||
nps = "nix repl '<nixpkgs>'";
|
nps = "nix repl '<nixpkgs>'";
|
||||||
nixo = "man configuration.nix";
|
nixo = "man configuration.nix";
|
||||||
nixh = "man home-configuration.nix";
|
nixh = "man home-configuration.nix";
|
||||||
|
Loading…
Reference in New Issue
Block a user