add sesh for session management
This commit is contained in:
parent
0ab3b8f3b6
commit
c2b70ec910
1 changed files with 8 additions and 1 deletions
|
|
@ -4,6 +4,10 @@ let
|
||||||
continuumSaveScript = "${pkgs.tmuxPlugins.continuum}/share/tmux-plugins/continuum/scripts/continuum_save.sh";
|
continuumSaveScript = "${pkgs.tmuxPlugins.continuum}/share/tmux-plugins/continuum/scripts/continuum_save.sh";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
home.packages = [ pkgs.sesh ];
|
||||||
|
|
||||||
|
programs.zsh.shellAliases.ts = "sesh connect $(sesh list --icons | fzf --reverse --border --ansi)";
|
||||||
|
|
||||||
programs.tmux = {
|
programs.tmux = {
|
||||||
enable = true;
|
enable = true;
|
||||||
shortcut = "a";
|
shortcut = "a";
|
||||||
|
|
@ -96,6 +100,9 @@ in
|
||||||
# Reload config file
|
# Reload config file
|
||||||
bind r source-file ~/.config/tmux/tmux.conf \; display-message "Config reloaded!"
|
bind r source-file ~/.config/tmux/tmux.conf \; display-message "Config reloaded!"
|
||||||
|
|
||||||
|
# Fast session switcher with sesh + fzf
|
||||||
|
bind s display-popup -B -E "sesh connect $(sesh list --icons | fzf --reverse --border --ansi)"
|
||||||
|
|
||||||
# Better copy mode with OSC-52 clipboard
|
# Better copy mode with OSC-52 clipboard
|
||||||
bind-key -T copy-mode-vi v send-keys -X begin-selection
|
bind-key -T copy-mode-vi v send-keys -X begin-selection
|
||||||
bind-key -T copy-mode-vi y send-keys -X copy-pipe
|
bind-key -T copy-mode-vi y send-keys -X copy-pipe
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue