From 856fad6c9a2ae91f5e8bc769d5ec3ada89a9c168 Mon Sep 17 00:00:00 2001 From: "flyingscorpio@clevo" Date: Fri, 18 Nov 2022 23:08:13 +0100 Subject: [PATCH] Remove tmux plugins --- roles/tmux/files/tmux.conf | 11 +++-------- roles/tmux/tasks/main.yml | 18 +++++------------- 2 files changed, 8 insertions(+), 21 deletions(-) diff --git a/roles/tmux/files/tmux.conf b/roles/tmux/files/tmux.conf index 54754f2..10bd10f 100644 --- a/roles/tmux/files/tmux.conf +++ b/roles/tmux/files/tmux.conf @@ -13,6 +13,8 @@ set-window-option -g monitor-activity off set-option -g mode-keys vi set-option -g history-limit 10000 +set-option -g set-titles on +set-option -g set-titles-string "#T" # y and p as in vim bind-key Escape copy-mode @@ -51,11 +53,4 @@ bind-key -r L resize-pane -R 5 # fuzzy switch to session unbind-key s -bind-key s run-shell -b "tmux switch-client -t $(tmux list-sessions | awk -F: '{print $1}' | fzf-tmux -p | tr -d '\n')" - -# plugins -set-option -g @plugin 'tmux-plugins/tpm' -set-option -g @plugin 'tmux-plugins/tmux-sensible' -set-option -g @plugin 'tmux-plugins/tmux-resurrect' - -run-shell '~/.tmux/plugins/tpm/tpm' +bind-key s run-shell -b "tmux switch-client -t $(tmux list-sessions | awk -F: '{print $2}' | fzf-tmux -p | tr -d '\n')" diff --git a/roles/tmux/tasks/main.yml b/roles/tmux/tasks/main.yml index 39becdd..5b9384b 100644 --- a/roles/tmux/tasks/main.yml +++ b/roles/tmux/tasks/main.yml @@ -19,16 +19,8 @@ dest: ~/.tmux.conf mode: 0644 -- name: Create tmux plugin directory - file: path={{ item }} state=directory mode=0755 - with_items: - - ~/.tmux - - ~/.tmux/plugins - -- name: Clone tmux plugin manager - git: - repo: https://github.com/tmux-plugins/tpm - dest: ~/.tmux/plugins/tpm - clone: true - update: false - version: master +- name: Create tmux directory + file: + path: ~/.tmux + state: directory + mode: 0755