aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar pinoinha <pinoinha@disroot.org> 2022-12-29 03:18:35 +0000
committerGravatar pinoinha <pinoinha@disroot.org> 2022-12-29 03:18:35 +0000
commit6b6321800d37df07fc04eec7eead40544dcbfda5 (patch)
tree3d87e6664582a43e17884b5b2663539cb26c3ce5
parent5033b8be9fef25b4ac29a333923c74ed84fd1766 (diff)
configuração atualizada do tmux
-rw-r--r--.tmux.conf36
1 files changed, 29 insertions, 7 deletions
diff --git a/.tmux.conf b/.tmux.conf
index 409b6f8..7130cb7 100644
--- a/.tmux.conf
+++ b/.tmux.conf
@@ -1,4 +1,3 @@
-<<<<<<< HEAD
# --- Bindings --- #
# changes prefix from C-b to C-s
@@ -6,11 +5,14 @@ unbind C-b
set -g prefix C-s
# set bind key to reload configuration file
-bind r source-file ~/.tmux.conf \; display "Reloaded!"
+bind r source-file ~/.tmux.conf \; display ​"Reloaded!"
# create a new session
bind C new-s
+# send prefix key using prefix+"
+bind '"' send-prefix
+
# pane control
bind k kill-pane
@@ -23,6 +25,7 @@ bind S split-window -h
bind K kill-window
bind C-S-K kill-window
+bind C-d detach-client
# move to last window
bind C-s last-window
bind C-p previous-window
@@ -69,11 +72,30 @@ set-option -g update-environment 'DBUS_SESSION_BUS_ADDRESS'
set-option -g default-terminal "xterm-256color"
# preload sessions and windows
-new -s 'padrão' -n mail aerc
-neww -n mus cmus
-#neww -n xmpp profanity
-#neww -n irc weechat
-neww -n cal calcurse
+new -s 'padrao' -n irc irssi
+neww -n mus ncmpcpp
# shell session, for general use
new -s 'shell'
+
+# plugins
+
+set -g @plugin 'tmux-plugins/tpm'
+
+# fzf-url
+set -g @plugin 'wfxr/tmux-fzf-url'
+set -g @fzf-url-history-limit '2000'
+set -g @fzf-url-fzf-options '-w 50% -h 50% --multi -0 --no-preview --no-border'
+
+# Other examples:
+# set -g @plugin 'github_username/plugin_name'
+# set -g @plugin 'github_username/plugin_name#branch'
+# set -g @plugin 'git@github.com:user/plugin'
+# set -g @plugin 'git@bitbucket.com:user/plugin'
+
+# ensures tpm is installed (for portability)
+if "test ! -d ~/.tmux/plugins/tpm" \
+ "run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && ~/.tmux/plugins/tpm/bin/install_plugins'"
+
+# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
+run '~/.tmux/plugins/tpm/tpm'