-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add tmux plugins to show when I'm in command mode
- Loading branch information
Showing
1 changed file
with
19 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
|
||
# make tmux display things in 256 colors | ||
set -g default-terminal "screen-256color" | ||
|
||
|
@@ -76,6 +77,10 @@ set -g status-justify centre # center window list for clarity | |
setw -g monitor-activity on | ||
set -g visual-activity on | ||
|
||
# tmux-focus-events.vim FocusGained and FocusLost autocommand events are not working | ||
# in terminal vim. This plugin restores them when using vim inside Tmux. | ||
set -g focus-events on | ||
|
||
# set color for status bar | ||
set-option -g status-bg colour235 #base02 | ||
set-option -g status-fg yellow #yellow | ||
|
@@ -92,12 +97,23 @@ set-window-option -g window-status-current-attr bright | |
|
||
# show host name and IP address on left side of status bar | ||
set -g status-left-length 70 | ||
set -g status-left "#[fg=green]: #h : #[fg=brightblue]#(curl icanhazip.com) #[fg=yellow]#(ifconfig en0 | grep 'inet ' | awk '{print \"en0 \" $2}') #(ifconfig en1 | grep 'inet ' | awk '{print \"en1 \" $2}') #[fg=red]#(ifconfig tun0 | grep 'inet ' | awk '{print \"vpn \" $2}') " | ||
set -g status-left "#[fg=green]:#{prefix_highlight} #h : #[fg=brightblue]#(curl icanhazip.com) #[fg=yellow]#(ifconfig en0 | grep 'inet ' | awk '{print \"en0 \" $2}') #(ifconfig en1 | grep 'inet ' | awk '{print \"en1 \" $2}') #[fg=red]#(ifconfig tun0 | grep 'inet ' | awk '{print \"vpn \" $2}') " | ||
|
||
# show session name, window & pane number, date and time on right side of | ||
# status bar | ||
set -g status-right-length 60 | ||
set -g status-right "#[fg=blue]#S #I:#P #[fg=yellow]:: %d %b %Y #[fg=green]:: %l:%M %p :: #(date -u | awk '{print $4}')::" | ||
|
||
# List of plugins | ||
set -g @plugin 'tmux-plugins/tpm' | ||
# set -g @plugin 'tmux-plugins/tmux-sensible' | ||
# | ||
# Other examples: | ||
# set -g @plugin 'github_username/plugin_name' | ||
# set -g @plugin '[email protected]/user/plugin' | ||
# set -g @plugin '[email protected]/user/plugin' | ||
set -g @plugin 'tmux-plugins/tmux-prefix-highlight' | ||
set -g @plugin 'tmux-plugins/tmux-urlview' | ||
# | ||
# if run as "tmux attach", create a session if one does not already exist | ||
new-session -n $HOST | ||
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) | ||
run -b '~/.tmux/plugins/tpm/tpm' |