Add tmux config

This commit is contained in:
Nicole Tietz-Sokolskaya 2018-05-28 17:02:56 -04:00
parent 479416b8c6
commit 8f517fe0d5
4 changed files with 64 additions and 15 deletions

View file

@ -26,5 +26,13 @@ fi
export PATH=$PATH:~/.bin export PATH=$PATH:~/.bin
export TERM=xterm-256color export TERM=xterm-256color
[ -f /usr/local/etc/bash_completion ] && . /usr/local/etc/bash_completion # Installed with https://github.com/pyenv/pyenv-installer
export PATH="/home/nicholas/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
if [ -f /usr/local/etc/bash_completion ]
then
. /usr/local/etc/bash_completion
fi

View file

@ -4,17 +4,5 @@ stow -t ~ bash
stow -t ~ screen stow -t ~ screen
stow -t ~ vim stow -t ~ vim
stow -t ~ slate stow -t ~ slate
stow -t ~ tmux
#rm -f .screenrc
#ln -s ~/Code/config/screenrc .screenrc
#rm -f .vimrc
#ln -s ~/Code/config/vimrc .vimrc
# set up the default branch for git
#git config --global branch.master.remote origin
#git config --global branch.master.merge refs/heads/master
#mkdir -f ~/.vim
#git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim

53
tmux/.tmux.conf Normal file
View file

@ -0,0 +1,53 @@
# Reload tmux config
bind r source-file ~/.tmux.conf \; display-message "Config reloaded..."
set -sg escape-time 0
set -g default-terminal "screen-256color"
# window status
setw -g window-status-format "#[fg=colour7]#[bg=black] --#[fg=color7]#[bg=black] #I #W "
setw -g window-status-current-format "#[bg=colour7]#[fg=black] --#[bg=color7]#[fg=black] #I #W "
# The statusbar
set -g status-interval 2
set -g status-position bottom
set -g status-bg colour234
set -g status-fg colour137
set -g status-attr dim
set -g status-left ''
set -g status-right '#[fg=colour233,bg=colour241,bold] %m/%d #[fg=colour233,bg=colour245,bold] %I:%M '
set -g status-right-length 50
set -g status-left-length 20
set -g clock-mode-style 12
# Vim style pane selection
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Use Alt-vim keys without prefix key to switch panes
bind -n M-h select-pane -L
bind -n M-j select-pane -D
bind -n M-k select-pane -U
bind -n M-l select-pane -R
# Use Alt-arrow keys without prefix key to switch panes
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
# Window splitting
bind-key c new-window -c "#{pane_current_path}"
bind-key v split-window -h -c "#{pane_current_path}"
bind-key h split-window -v -c "#{pane_current_path}"
bind-key + select-layout even-vertical
bind-key = select-layout even-horizontal
bind-key -n C-S-Down resize-pane -D 5
bind-key -n C-S-Up resize-pane -U 5
bind-key -n C-S-Left resize-pane -L 5
bind-key -n C-S-Right resize-pane -R 5

View file

@ -34,7 +34,7 @@ SetupTabbing
" makes LaTeX use spell checking, word wrapping " makes LaTeX use spell checking, word wrapping
autocmd FileType tex set wrap spell autocmd FileType tex set wrap spell
autocmd FileType make set noexpandtab autocmd FileType make set noexpandtab
autocmd FileType python SetupTabbing "autocmd FileType python SetupTabbing
autocmd FileType markdown set wrap autocmd FileType markdown set wrap
let java_allow_cpp_keywords=1 let java_allow_cpp_keywords=1