tmux-sessionizer: use getExe
This commit is contained in:
parent
da24f19a47
commit
858905ac30
1 changed files with 8 additions and 6 deletions
|
@ -1,6 +1,8 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
inherit (lib) getExe getExe';
|
||||
|
||||
cfg = config.snowhawk.tmux.sessionizer;
|
||||
tmuxCfg = config.snowhawk.tmux;
|
||||
|
||||
|
@ -37,12 +39,12 @@ in
|
|||
|
||||
snowhawk.tmux.sessionizer.pkg =
|
||||
let
|
||||
tmux = "${pkgs.tmux}/bin/tmux";
|
||||
pgrep = "${pkgs.procps}/bin/pgrep";
|
||||
basename = "${pkgs.coreutils}/bin/basename";
|
||||
tr = "${pkgs.coreutils}/bin/tr";
|
||||
fzf = "${pkgs.fzf}/bin/fzf";
|
||||
find = "${pkgs.findutils}/bin/find";
|
||||
tmux = getExe pkgs.tmux;
|
||||
pgrep = getExe' pkgs.procps "pgrep";
|
||||
basename = getExe' pkgs.coreutils "basename";
|
||||
tr = getExe' pkgs.coreutils "tr";
|
||||
fzf = getExe pkgs.fzf;
|
||||
find = getExe pkgs.findutils;
|
||||
in
|
||||
lib.mkDefault (pkgs.writeShellScriptBin "tmux-sessionizer" ''
|
||||
if [[ $# -eq 1 ]]; then
|
||||
|
|
Loading…
Reference in a new issue