mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 06:50:14 +01:00
fix: writeShellScript -> writeShellScriptBin: allow for adding to env
This commit is contained in:
parent
7fe07dd10e
commit
0d871a7411
1 changed files with 2 additions and 2 deletions
|
|
@ -8,7 +8,7 @@
|
|||
coreutils,
|
||||
bash,
|
||||
nix-search-fzf,
|
||||
writeShellScript,
|
||||
writeShellScriptBin,
|
||||
}:
|
||||
|
||||
let
|
||||
|
|
@ -28,7 +28,7 @@ createScript "nix-search-fzf" src {
|
|||
];
|
||||
|
||||
# Enter a 'nix shell' with packages selected by this script
|
||||
passthru.zsh-shell-widget = writeShellScript "nix-search-fzf-shell-widget" ''
|
||||
passthru.zsh-shell-widget = writeShellScriptBin "nix-search-fzf-shell-widget" ''
|
||||
nix-search-fzf-shell-widget() {
|
||||
setopt localoptions pipefail no_aliases 2> /dev/null
|
||||
local cmd="$(eval "${nix-search-fzf}/bin/nix-search-fzf -c")"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue