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
# customize PS1 with git info and short directory names | |
find_pwd_short() { | |
pwd_short=$(pwd | sed 's@'"$HOME"'@~@' | sed -r 's|/(.)[^/]*|/\1|g') | |
if [ $pwd_short != '~' ]; then | |
pwd_short=${pwd_short%??} | |
pwd_short="$pwd_short/${PWD##*/}" | |
fi | |
} | |
export PROMPT_COMMAND="find_pwd_short; $PROMPT_COMMAND" |
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
# Bring out all the color! | |
set -g default-terminal "xterm-256color" | |
# Start pane & window numbering at 1 | |
set -g base-index 1 | |
set -g pane-base-index 1 | |
# Make the main pane in main-vertical layout wider | |
setw -g main-pane-width 120 |
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
" Use Vim settings, rather than Vi settings (much better!). | |
" This must be first, because it changes other options as a side effect. | |
set nocompatible | |
filetype off " required by Vundle | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins | |
" call vundle#begin('~/some/path/here') |
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
Various custom bash & git "function" |