Skip to content

Instantly share code, notes, and snippets.

@zaius
Last active December 17, 2015 22:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zaius/5683032 to your computer and use it in GitHub Desktop.
Save zaius/5683032 to your computer and use it in GitHub Desktop.
basic zshrc
# Remap prefix to ctrl-s - keeps ctrl-a free for start of line
set -g prefix C-s
unbind C-b
# Keep consistent with screen behavior
bind C-s last-window
bind C-d detach
bind C-c new-window
bind C-r source-file $HOME/.tmux.conf
set -g default-terminal "screen-256color"
# Set status bar
set -g status-bg colour234
set -g status-fg white
set -g pane-border-fg colour245
set -g window-status-activity-attr bold
set -g status-bg colour234
set -g window-status-activity-attr bold
set -g pane-border-fg colour245
set -g pane-active-border-fg colour39
set -g message-fg colour16
set -g message-bg colour221
set -g message-attr bold
set -g status-left-length 32
set -g status-right-length 150
set -g status-interval 5
# TODO: This is from my config which expects powerline. Need to come up with a
# better generic one.
# Don't have time in the status - it makes terminal notify every minute
set -g status-left ''
set -g status-right '#[fg=colour254,bg=colour234,nobold]<#[fg=colour16,bg=colour254,bold] #h '
set -g window-status-format "#[fg=white,bg=colour234] #I #W "
set -g window-status-current-format "#[fg=colour234,bg=colour39]>#[fg=colour16,bg=colour39,noreverse,bold] #I > #W #[fg=colour39,bg=colour234,nobold]>"
# Highlight active window
set-window-option -g window-status-current-bg red
# Set window notifications
setw -g monitor-activity on
set -g visual-activity on
# Woah.. tmux you rule
setw -g automatic-rename
# Mouse stuff
setw -g mode-mouse on
setw -g mouse-select-window on
setw -g mouse-select-pane on
setw -g mouse-resize-pane on
export PAGER=less
export EDITOR='subl -w'
# Add brew to path
export PATH=/usr/local/bin:$PATH
# Python
if [ -x /usr/local/bin/python ]; then
export PYTHONSTARTUP=~/.pythonrc
fi
# Ruby
if [ -x /usr/local/bin/ruby ]; then
export PATH=$(ruby -e 'puts Gem.bindir'):$PATH
fi
# Node
if [ -x /usr/local/bin/npm ]; then
export NODE_PATH="/usr/local/share/npm/lib/node_modules"
fi
autoload colors && colors
setopt prompt_subst
export PROMPT='\
%{$fg_bold[cyan]%}%n\
%{$fg_bold[red]%}@\
%{$fg_bold[cyan]%}%m\
:\
%{$fg_bold[red]%}%~\
%{$fg_no_bold[default]%}%# '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment