Skip to content

Commit

Permalink
add tmux plugins to show when I'm in command mode
Browse files Browse the repository at this point in the history
  • Loading branch information
rcampbel3 committed Mar 21, 2019
1 parent fe11e2a commit 181ac22
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions .tmux.conf
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"

Expand Down Expand Up @@ -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
Expand All @@ -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'

0 comments on commit 181ac22

Please sign in to comment.