mirror of
https://github.com/Lissy93/dotfiles.git
synced 2024-11-25 08:43:26 +01:00
Tmux list sesh popup
This commit is contained in:
parent
1112a434ae
commit
0e16389161
@ -5,6 +5,7 @@
|
||||
######################################################################
|
||||
# Config for Tmux multiplexer (requires version >= v2.4) #
|
||||
# Sets preferences, keybindings and configures plugins #
|
||||
# Tmux needs to be re-sourced or killed for changes to work #
|
||||
# For docs and more info, see: https://github.com/lissy93/dotfiles #
|
||||
# #
|
||||
# Licensed under MIT (C) Alicia Sykes 2022 <https://aliciasykes.com> #
|
||||
@ -15,8 +16,6 @@
|
||||
# Basics #
|
||||
######################################################################
|
||||
|
||||
# Add a secondary prefix key (Ctrl+A as well as Ctrl+B)
|
||||
|
||||
# Set Tmux prefix keys (Ctrl+B or `)
|
||||
set-option -g prefix C-b
|
||||
set-option -g prefix2 `
|
||||
@ -67,6 +66,16 @@ bind h split-window -h
|
||||
set -g monitor-activity on
|
||||
set -g visual-activity on
|
||||
|
||||
######################################################################
|
||||
# Pop-Up Menus #
|
||||
######################################################################
|
||||
|
||||
# Prefix + Ctrl J shows a session list popup selector with fzf
|
||||
bind C-j display-popup -E "tmux list-sessions | sed -E 's/:.*$//' | grep -v \"^$(tmux display-message -p '#S')\$\" | fzf --reverse | xargs tmux switch-client -t"
|
||||
|
||||
# Show htop on Prefix + Ctrl H
|
||||
bind C-h display-popup -E "htop"
|
||||
|
||||
|
||||
######################################################################
|
||||
# Plugin Imports and Configurations #
|
||||
|
Loading…
Reference in New Issue
Block a user