Compare commits
4 Commits
2a2b2e1373
...
802dbb7c08
Author | SHA1 | Date |
---|---|---|
Zynh Ludwig | 802dbb7c08 | |
Zynh Ludwig | 7d1a5fa9d5 | |
Zynh Ludwig | 59044237ee | |
Zynh Ludwig | 2c548b4ac3 |
|
@ -28,12 +28,14 @@ in
|
|||
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";
|
||||
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
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue