-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
82 lines (68 loc) · 3.29 KB
/
.tmux.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# ~/.tmux.conf
# I have commented the bellow line because i am using tmux powerline theme now
#source /usr/lib/python3.8/site-packages/powerline/bindings/tmux/powerline.conf
# set key bindings for vim like navigation through panes
bind C-h select-pane -L
bind C-j select-pane -D
bind C-k select-pane -U
bind C-l select-pane -R
# from advices of neovim checkhealth under tmux environment:
set-option -sg escape-time 10
# for manjaro
set -g default-terminal "tmux-256color"
# for Ubuntu 18.04 LTS
# set -g default-terminal "xterm-256color"
set-option -sa terminal-overrides ",st-256color:RGB"
# from: https://dev.to/casonadams/ditch-vscode-for-neovim-25ca
set -g set-clipboard on
# from "https://stackoverflow.com/questions/17445100/getting-back-old-copy-paste-behaviour-in-tmux-with-mouse"
# to have better copy / paste. when mouse support is on the middle button paste does not work.
# disable mouse control by default - change 'off' to 'on' to enable by default.
set -g mouse off
# toggle mouse mode to allow mouse copy/paste
# set mouse on with prefix m
bind m \
set -g mouse on \;\
display 'Mouse: ON'
# set mouse off with prefix M
bind M \
set -g mouse off \;\
display 'Mouse: OFF'
# tmux powerline theme settings
#================================================================================
set -g @tmux_power_theme 'sky'
# 'L' for left only, 'R' for right only and 'LR' for both
set -g @tmux_power_prefix_highlight_pos 'L'
set -g @prefix_highlight_empty_prompt '[]=' # default is '' (empty char)
set -g @prefix_highlight_empty_attr 'fg=#262626,bg=#87ceeb' # default is 'fg=default,bg=default'
set -g @prefix_highlight_empty_has_affixes 'on' # default is 'off'
set -g @tmux_power_my_mood false # false means minimal and no git status and true vice versa
set -g @tmux_power_my_status_mood false # false means minimal and true is fancier with big tags
#================================================================================
# from: https://www.hamvocke.com/blog/a-guide-to-customizing-your-tmux-conf/
set -g pane-border-style 'fg=cyan bg=default'
set -g pane-active-border-style 'bg=default fg=magenta'
# the other good options are simple, double and heavy
# but at the momment I like the default single
set -g pane-border-lines 'single'
# from https://github.com/tmux-plugins/tpm/ tmux plugin manager
# always at the bottom of this file
# List of plugins
# prefix + shift + I to install the plugins after reloading .tmux.conf file.
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
# Other examples:
# tmux-plugin
# its optional dependency is : CopyQ(https://github.com/hluk/CopyQ)
set -g @plugin 'sainnhe/tmux-fzf' # prefix + shift + F
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin '[email protected]:user/plugin'
# set -g @plugin '[email protected]:user/plugin'
# tmux powerline theme
# this is my fork of tmux-power. using the plugin manager i could not push my updates
# to the repo (I don't know why at the momment.) but I can clone it manually to the
# "~/.tmux/plugins/" directory and it works fine.
set -g @plugin 'amirrezasadeqi/tmux-power#asModification'
set -g @plugin 'tmux-plugins/tmux-prefix-highlight' # prefix highlight for powerline theme plugin
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'