feat: add nix shell shortcut called p

This commit is contained in:
Benjamin Bädorf 2023-11-01 14:40:29 +01:00
parent 254886e511
commit 3ce24992e7
No known key found for this signature in database
GPG key ID: 1B7BF5B77A521346
3 changed files with 12 additions and 0 deletions

View file

@ -36,6 +36,7 @@ in {
./nnn/0001-feat-use-wasd-keybindings-for-jkli.patch ./nnn/0001-feat-use-wasd-keybindings-for-jkli.patch
]; ];
})) }))
p
powerline powerline
screen screen
silver-searcher silver-searcher

View file

@ -9,6 +9,7 @@ with prev; {
mailto-mutt = writeShellScriptBin "mailto-mutt" (import ./mailto-mutt.nix final); mailto-mutt = writeShellScriptBin "mailto-mutt" (import ./mailto-mutt.nix final);
mopidy-jellyfin = import ./mopidy-jellyfin.nix final; mopidy-jellyfin = import ./mopidy-jellyfin.nix final;
mu = writeShellScriptBin "mu" (import ./mu.nix final); mu = writeShellScriptBin "mu" (import ./mu.nix final);
p = writeShellScriptBin "p" (import ./p.nix final);
present-md = writeShellScriptBin "present-md" (import ./present-md.nix final); present-md = writeShellScriptBin "present-md" (import ./present-md.nix final);
psos = writeShellScriptBin "psos" (import ./psos.nix final); psos = writeShellScriptBin "psos" (import ./psos.nix final);
psos-docs = import ./psos-docs.nix final; psos-docs = import ./psos-docs.nix final;

10
pkgs/p.nix Normal file
View file

@ -0,0 +1,10 @@
self:
with self; ''
PKGS=""
for pkg in "$@"
do
PKGS="$PKGS nixpkgs#$pkg"
done
${nix}/bin/nix shell $PKGS
''