Compare commits

...

4 Commits

2 changed files with 8 additions and 1 deletions

View File

@ -27,13 +27,16 @@ in
tmux = "${pkgs.tmux}/bin/tmux";
pgrep = "${pkgs.procps}/bin/pgrep";
basename = "${pkgs.coreutils}/bin/basename";
readlink = "${pkgs.coreutils}/bin/readlink";
tr = "${pkgs.coreutils}/bin/tr";
fzf = "${pkgs.fzf}/bin/fzf";
find = "${pkgs.findutils}/bin/find";
in
lib.mkDefault (pkgs.writeShellScriptBin "tmux-sessionizer" ''
if [[ $# -eq 1 ]]; then
selected=$1
else
selected=$(find "$(readlink -f ~/projects)" ~/ ~/.config ~/.suckless/ -mindepth 1 -maxdepth 1 -type d | fzf)
selected=$(${find} "$(${readlink} -f ~/projects)" ~/ ~/.config ~/.suckless/ -mindepth 1 -maxdepth 1 -type d | ${fzf})
fi
if [[ -z $selected ]]; then

View File

@ -41,5 +41,9 @@ in
${lib.optionalString sessionizer.enable ''bind-key -r f run-shell "tmux neww ${sessionizer.pkg}/bin/tmux-sessionizer"''}
'';
};
programs.fish.shellAbbrs = {
a = "tmux a";
};
};
}