Created
October 18, 2015 14:47
-
-
Save gabber12/813a2b84d7961fc551c2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### INSTALLATION NOTES ### | |
# 1. Install Homebrew (https://github.com/mxcl/homebrew) | |
# 2. brew install zsh | |
# 3. Install OhMyZsh (https://github.com/robbyrussell/oh-my-zsh) | |
# 4. brew install reattach-to-user-namespace --wrap-pbcopy-pbpaste && brew link reattach-to-user-namespace | |
# 5. Install iTerm2 | |
# 6. In iTerm2 preferences for your profile set: | |
# Character Encoding: Unicode (UTF-8) | |
# Report Terminal Type: xterm-256color | |
# 7. Put itunesartist and itunestrack into PATH | |
# | |
# | |
# Usage: | |
# - Prefix is set to Ctrl-a (make sure you remapped Caps Lock to Ctrl) | |
# - All prefixed with Ctrl-a | |
# - Last used window: / | |
# - Last used pane: ; | |
# - Vertical split: v | |
# - Horizontal split: s | |
# - Previous window: [ | |
# - Next window: ] | |
# - Choose session: Ctrl-s | |
# - Quick window: Ctrl-q | |
#set-option -g default-command "reattach-to-user-namespace -l zsh" | |
# | |
#### LOOK & FEEL ### | |
#set -g default-terminal "xterm-256color" | |
# | |
## default statusbar colors | |
#set-option -g status-bg colour235 | |
#set-option -g status-fg colour179 | |
#set-option -g status-attr default | |
# | |
## default window title colors | |
#set-window-option -g window-status-fg colour244 | |
#set-window-option -g window-status-bg default | |
# | |
## active window title colors | |
#set-window-option -g window-status-current-fg colour166 | |
#set-window-option -g window-status-current-bg default | |
#set-window-option -g window-status-current-attr bright | |
# | |
## pane border | |
#set-option -g pane-border-fg colour235 | |
#set-option -g pane-active-border-fg colour240 | |
# | |
## pane number display | |
#set-option -g display-panes-active-colour colour33 | |
#set-option -g display-panes-colour colour166 | |
# | |
## clock | |
#set-window-option -g clock-mode-colour colour64 | |
# | |
## status bar right contents | |
#set -g status-right-length 65 | |
#set -g status-right "#[fg=colour187][#(itunesartist) - #(itunestrack)] #[fg=default][%H:%M %e-%b-%Y]" | |
#set -g status-interval 5 | |
# | |
#set-option -g mouse-select-pane on | |
#set-option -g mouse-select-window on | |
#set-option -g mode-mouse on | |
# | |
#set-window-option -g utf8 on | |
# | |
#set-option -g status-keys vi | |
#set-option -g mode-keys vi | |
# | |
##no command delay | |
#set -sg escape-time 0 | |
# | |
##count windows and panes from 1 | |
#set -g base-index 1 | |
#setw -g pane-base-index 1 | |
# | |
# | |
### KEYS ### | |
#using C-a as prefix | |
unbind C-b | |
set-option -g prefix C-a | |
bind C-a send-prefix | |
unbind / | |
bind / last-window | |
unbind % | |
bind s split-window -v | |
unbind '"' | |
bind v split-window -h | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
unbind { | |
bind { swap-pane -D | |
unbind } | |
bind } swap-pane -U | |
#unbind r | |
#bind r source-file ~/.tmux.conf; display "Reloaded" | |
bind Escape copy-mode | |
bind p paste-buffer | |
unbind [ | |
bind [ previous-window | |
unbind ] | |
bind ] next-window | |
unbind o | |
bind o select-pane -t :.- | |
bind C-q command-prompt -I "htop" -p "Quick window command: " "new-window '%%'" | |
bind -t vi-copy 'v' begin-selection | |
bind -t vi-copy 'y' copy-selection | |
bind C-c run "tmux save-buffer - | pbcopy" | |
bind C-v run "tmux set-buffer \"$(pbpaste)\"; tmux paste-buffer" | |
bind C-s choose-session | |
set -g mouse-select-window on | |
set -g mouse-select-pane on | |
set -g mouse-resize-pane on | |
set-option -g pane-border-fg green | |
set-option -g pane-border-bg black | |
set-option -g pane-active-border-fg white | |
set-option -g pane-active-border-bg yellow | |
set-option -g status on | |
set-option -g status-interval 2 | |
set-option -g status-utf8 on | |
set-option -g status-justify "centre" | |
set-option -g status-left-length 60 | |
set-option -g status-right-length 90 | |
set-option -g status-left "#(~/.tmux-plugin/tmux-powerline/powerline.sh left)" | |
set-option -g status-right "#(~/.tmux-plugin/tmux-powerline/powerline.sh right)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Path to your oh-my-zsh installation. | |
export ZSH=/Users/gabber12/.oh-my-zsh | |
export LC_ALL=en_US.UTF-8 | |
export LANG=en_US.UTF-8 | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
ZSH_THEME="wezm" | |
# Uncomment the following line to use case-sensitive completion. | |
# CASE_SENSITIVE="true" | |
# Uncomment the following line to use hyphen-insensitive completion. Case | |
# sensitive completion must be off. _ and - will be interchangeable. | |
# HYPHEN_INSENSITIVE="true" | |
# Uncomment the following line to disable bi-weekly auto-update checks. | |
# DISABLE_AUTO_UPDATE="true" | |
# Uncomment the following line to change how often to auto-update (in days). | |
# export UPDATE_ZSH_DAYS=13 | |
# Uncomment the following line to disable colors in ls. | |
# DISABLE_LS_COLORS="true" | |
# Uncomment the following line to disable auto-setting terminal title. | |
# DISABLE_AUTO_TITLE="true" | |
# Uncomment the following line to enable command auto-correction. | |
# ENABLE_CORRECTION="true" | |
# Uncomment the following line to display red dots whilst waiting for completion. | |
# COMPLETION_WAITING_DOTS="true" | |
# Uncomment the following line if you want to disable marking untracked files | |
# under VCS as dirty. This makes repository status check for large repositories | |
# much, much faster. | |
# DISABLE_UNTRACKED_FILES_DIRTY="true" | |
# Uncomment the following line if you want to change the command execution time | |
# stamp shown in the history command output. | |
# The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd" | |
# HIST_STAMPS="mm/dd/yyyy" | |
# Would you like to use another custom folder than $ZSH/custom? | |
# ZSH_CUSTOM=/path/to/new-custom-folder | |
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) | |
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ | |
# Example format: plugins=(rails git textmate ruby lighthouse) | |
# Add wisely, as too many plugins slow down shell startup. | |
plugins=(git) | |
# User configuration | |
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" | |
# export MANPATH="/usr/local/man:$MANPATH" | |
source $ZSH/oh-my-zsh.sh | |
# You may need to manually set your language environment | |
# export LANG=en_US.UTF-8 | |
# Preferred editor for local and remote sessions | |
# if [[ -n $SSH_CONNECTION ]]; then | |
# export EDITOR='vim' | |
# else | |
# export EDITOR='mvim' | |
# fi | |
# Compilation flags | |
# export ARCHFLAGS="-arch x86_64" | |
# ssh | |
# export SSH_KEY_PATH="~/.ssh/dsa_id" | |
# Set personal aliases, overriding those provided by oh-my-zsh libs, | |
# plugins, and themes. Aliases can be placed here, though oh-my-zsh | |
# users are encouraged to define aliases within the ZSH_CUSTOM folder. | |
# For a full list of active aliases, run `alias`. | |
# | |
# Example aliases | |
# alias zshconfig="mate ~/.zshrc" | |
# alias ohmyzsh="mate ~/.oh-my-zsh" | |
alias vim="mvim -v" | |
source .zshenv | |
alias gitpp="git pull && git push" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment