Skip to content

Commit

Permalink
Fix tmux, add prefix highlighting
Browse files Browse the repository at this point in the history
Signed-off-by: Tomas Slusny <[email protected]>
  • Loading branch information
deathbeam committed Apr 11, 2017
1 parent 3bc8560 commit c4c953f
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 11 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,6 @@
[submodule "vim/.vim/bundle/completor.vim"]
path = vim/.vim/bundle/completor.vim
url = https://github.com/maralla/completor.vim
[submodule "tmux/.tmux/bundle/tmux-sessionist"]
path = tmux/.tmux/bundle/tmux-sessionist
url = https://github.com/tmux-plugins/tmux-sessionist
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ To add your own Vim, Tmux or Zsh plugin you can just clone it to proper
tmux environment across system restarts
* [tmux-sensible](https://github.com/tmux-plugins/tmux-sensible): basic tmux
settings everyone can agree on
* [tmux-sessionist](https://github.com/tmux-plugins/tmux-sessionist):
Lightweight tmux utils for manipulating sessions
* [tmux-yank](https://github.com/tmux-plugins/tmux-yank): Plugin for copying to
system clipboard
* [vim-tmux-navigator](https://github.com/christoomey/vim-tmux-navigator):
Expand Down
11 changes: 5 additions & 6 deletions tmux/.tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ unbind C-b
set -g prefix C-Space
bind C-space send-prefix

# Kill current session
bind X kill-session

# Open new windows and tabs with current path
bind c new-window -c "#{pane_current_path}"
bind '"' split-window -h -c "#{pane_current_path}"
Expand Down Expand Up @@ -77,10 +74,12 @@ set -g set-titles-string '#T'
# Status bar
set -g status on
set -g status-bg default
set -g status-fg default
set -g status-fg cyan

set -g status-left ''
set -g status-left '#{?client_prefix,#[fg=green]#[bold]-- PREFIX -- ,}#{?pane_in_mode,#[fg=green]#[bold]-- VISUAL -- ,}'
set -g status-left-length 100
set -g status-right '#[fg=cyan]#S'
set -g status-right-length 100
set -g window-status-format '#[fg=black]#I:#W#F'
set -g window-status-current-format '#[fg=blue]#I:#W#F'

Expand All @@ -97,7 +96,7 @@ set -g @continuum-restore 'on'
set -g @continuum-save-interval '10'

# Pathogen-like loader for plugins
run-shell 'find -L ~/.tmux/bundle -type f -name "*.tmux" | sort -r | while read f; do bash $f; done'
run-shell 'find -L ~/.tmux/bundle -type f -name "*.tmux" | sort | while read f; do bash $f; done'

# }}}

Expand Down
1 change: 1 addition & 0 deletions tmux/.tmux/bundle/tmux-sessionist
Submodule tmux-sessionist added at 721840
2 changes: 1 addition & 1 deletion vim/.vim/bundle/completor.vim
2 changes: 1 addition & 1 deletion vim/.vim/bundle/tsuquyomi
2 changes: 1 addition & 1 deletion vim/.vim/bundle/vim-test
2 changes: 1 addition & 1 deletion zsh/.fzf
Submodule .fzf updated 1 files
+1 −1 shell/completion.bash
2 changes: 1 addition & 1 deletion zsh/.zim
Submodule .zim updated from 53a3cd to 43096d
1 change: 1 addition & 0 deletions zsh/.zsh/bundle/vi-mode.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ bindkey '^e' end-of-line
# if mode indicator wasn't setup by theme, define default
if [[ "$MODE_INDICATOR" == "" ]]; then
MODE_INDICATOR="%{$fg_bold[red]%}<%{$fg[red]%}<<%{$reset_color%}"
MODE_INDICATOR="%{$FX[bold]%}%{$FG[2]%}-- INSERT --%{$FX[reset]%}"
fi

vi_mode_prompt_info() {
Expand Down
1 change: 1 addition & 0 deletions zsh/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ if [ -f ~/.zim/init.zsh ]; then
archive \
directory \
environment \
spectrum \
fasd \
git \
git-info \
Expand Down

0 comments on commit c4c953f

Please sign in to comment.