tmux: optional sessionizer binding
This commit is contained in:
parent
8662c4df19
commit
1e55be7fae
1 changed files with 2 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.snowhawk.tmux;
|
cfg = config.snowhawk.tmux;
|
||||||
|
sessionizer = cfg.sessionizer;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.snowhawk.tmux = {
|
options.snowhawk.tmux = {
|
||||||
|
@ -37,7 +38,7 @@ in
|
||||||
bind '"' split-window -v -c "#{pane_current_path}"
|
bind '"' split-window -v -c "#{pane_current_path}"
|
||||||
bind % split-window -h -c "#{pane_current_path}"
|
bind % split-window -h -c "#{pane_current_path}"
|
||||||
|
|
||||||
bind-key -r f run-shell "tmux neww ~/.user/scripts/tmux-sessionizer"
|
${lib.optionalString sessionizer.enable ''bind-key -r f run-shell "tmux neww ${sessionizer.pkg}/bin/tmux-sessionizer"''}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue