feat: mux-sessionizer
This commit is contained in:
parent
9f6b7f1fc9
commit
94c9973c24
3 changed files with 20 additions and 7 deletions
|
|
@ -36,9 +36,15 @@
|
||||||
# # You can also create simple shell scripts directly inside your
|
# # You can also create simple shell scripts directly inside your
|
||||||
# # configuration. For example, this adds a command 'my-hello' to your
|
# # configuration. For example, this adds a command 'my-hello' to your
|
||||||
# # environment:
|
# # environment:
|
||||||
# (pkgs.writeShellScriptBin "my-hello" ''
|
(pkgs.writeShellScriptBin "mux-sessionizer" ''
|
||||||
# echo "Hello, ${config.home.username}!"
|
session=$(tmuxinator list | tail -n +2 | tr -s '[:space:]' '\n' | fzf)
|
||||||
# '')
|
|
||||||
|
if [ -n "$session" ]; then
|
||||||
|
tmuxinator start "$session"
|
||||||
|
else
|
||||||
|
echo "No session selected"
|
||||||
|
fi
|
||||||
|
'')
|
||||||
];
|
];
|
||||||
|
|
||||||
# Home Manager is pretty good at managing dotfiles. The primary way to manage
|
# Home Manager is pretty good at managing dotfiles. The primary way to manage
|
||||||
|
|
|
||||||
|
|
@ -14,10 +14,17 @@
|
||||||
cat = "bat";
|
cat = "bat";
|
||||||
cd = "z";
|
cd = "z";
|
||||||
};
|
};
|
||||||
initExtra = "fastfetch\n
|
initExtra = ''
|
||||||
eval \"$(zoxide init zsh)\"";
|
bindkey -s ^f "mux-sessionizer\n"
|
||||||
|
|
||||||
history.size = 10000;
|
fastfetch
|
||||||
|
eval "$(zoxide init zsh)"
|
||||||
|
'';
|
||||||
|
|
||||||
|
history = {
|
||||||
|
size = 10000;
|
||||||
|
append = true;
|
||||||
|
};
|
||||||
autosuggestion.enable = true;
|
autosuggestion.enable = true;
|
||||||
syntaxHighlighting.enable = true;
|
syntaxHighlighting.enable = true;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue