Minor updates

This commit is contained in:
Bill Niblock 2016-11-21 12:26:01 -05:00
parent 470f4a1cde
commit ad960399f8
4 changed files with 39 additions and 25 deletions

View file

@ -4,8 +4,12 @@
###
############
#tmux display things in 256 colors
# Remap the prefix, but not to C-A incase we need to screen
set-option -g prefix C-q
# Set default terminal, colors, and encoding
set -g default-terminal "screen-256color"
setw -g utf8 on
#start window numbers at 1
set -g base-index 1
@ -77,48 +81,45 @@ set -g window-status-current-format '#[fg=black,bg=cyan]#[fg=bright] #I '
# Keybinds
###
#act like vim
# Act like vim
setw -g mode-keys vi
#pane movement
# Pane movement
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
#window movement
# Window movement
bind-key -r C-h select-window -t :-
bind-key -r C-l select-window -t :+
#pane resizing
# Pane resizing
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
#split window and fix path for tmux 1.9
# Split window and fix path for tmux 1.9
bind | split-window -h #-c "#{pane_current_path}"
bind - split-window -v #-c "#{pane_current_path}"
# reload config file
# Reload config file
bind r source-file ~/.tmux.conf \; display "Config Reloaded!"
# copy/paste improvements :: NOT WORKING PROPERLY NOW
#bind C-c run "tmux save-buffer - | xclip -i -sel clipboard"
# Capture a pane into file for uploading to Gist
# bind-key u capture-pane \; save-buffer /tmp/tmux-buffer
# Captur selection, create a gist from it
#bind-key -tvi-copy u copy-pipe "~/Workbench/dotfiles/tmux/copy_selected.sh"
bind-key -tvi-copy u copy-pipe "ruby ~/gist_gem.rb -"
bind-key -tvi-copy u copy-pipe "ruby ~/gist_gem.rb -"
######
# Plugins
###
# TPM - Tmux Plugin Manager
# Install Plugins: <C-b> + I
# Install Plugins: <C-b> + I
# Uninstall Plugins: <C-b> + <Alt-u>
# Update Plugins: <C-b> + U
set -g @plugin 'tmux-plugins/tpm'