Created
June 24, 2015 14:14
-
-
Save nesbert/335320edde0c99a3d430 to your computer and use it in GitHub Desktop.
My development bash, vim, etc settings for OS X.
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
if [ -r ~/.profile ]; then . ~/.profile; fi | |
case "$-" in *i*) if [ -r ~/.bashrc ]; then . ~/.bashrc; fi;; esac |
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
#!/bin/bash | |
############################# | |
# Source global definitions | |
############################# | |
if [ -f /etc/bashrc ]; then | |
. /etc/bashrc | |
fi | |
# Use bash completion, if installed | |
if [ -f /etc/bash_completion ]; then | |
. /etc/bash_completion | |
fi | |
# liquid prompt | |
# source /path/to/liquidpromptrc | |
source ~/Development/github.com/liquidprompt/liquidprompt | |
############################# | |
# Colors | |
############################# | |
export TERM=xterm-color | |
export GREP_OPTIONS='--color=auto' GREP_COLOR='1;32' | |
export CLICOLOR=1 | |
#export LSCOLORS=gxfxcxdxbxegedabagacad | |
export LSCOLORS=ExFxCxDxBxegedabagacad | |
############################# | |
# Interface Tweaks | |
############################# | |
#PS1='[\u@\h:\w] \$ ' | |
#PS1="\\u@\\h:\\w $ " | |
#PS1='[\u@\h:\W]\$ ' | |
PS1='\h:\W \$ ' | |
############################# | |
# Bash History | |
############################# | |
export HISTCONTROL=ignoredups | |
export HISTFILESIZE=3000 | |
export HISTIGNORE='ls:cd:[bf]g:exit:..:...:ll:lla' | |
shopt -s histappend | |
hf() { | |
grep "$@" ~/.bash_history | |
} | |
############################# | |
# Aliases | |
############################# | |
alias ..='cd ..' | |
alias ...='cd .. ; cd ..' | |
alias ll='ls -halFG' | |
alias now='echo `date`' | |
alias cls='clear' | |
alias df='df -lh' | |
alias du='du -h' | |
alias space='df' | |
alias op='open' | |
alias ping='ping -c 3' | |
alias h='history' | |
alias rm='rm -i' | |
alias cp='cp -i' | |
alias mv='mv -i' | |
#:alias ps='ps -aux' | |
alias bye='logout' | |
alias remove-dup-menu-entries='/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local-domain system -domain user' | |
alias edit='subl ' | |
#alias composer="hhvm /usr/local/bin/composer.phar" | |
############################# | |
# DEV ENV | |
############################# | |
PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH" | |
#PATH="/usr/local/mysql/bin:$PATH" | |
export M3_HOME=/usr/local/Cellar/maven/3.2.3 | |
export M3=$M3_HOME/bin | |
export PATH=$M3:$PATH | |
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
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" General | |
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
set nocompatible " Must come first because it changes other options. | |
set showcmd " Display incomplete commands. | |
set showmode " Display the mode you're in. | |
syntax enable " Turn on syntax highlighting. | |
filetype plugin indent on " Turn on file type detection. | |
set backspace=indent,eol,start " Intuitive backspacing. | |
set hidden " Handle multiple buffers better. | |
set wildmenu " Enhanced command line completion. | |
set wildmode=list:longest " Complete files like a shell. | |
set ignorecase " Case-insensitive searching. | |
set smartcase " But case-sensitive if expression contains a capital letter. | |
set number " Show line numbers. | |
set ruler " Show cursor position. | |
set incsearch " Highlight matches as you type. | |
set hlsearch " Highlight matches. | |
set wrap " Turn on line wrapping. | |
set scrolloff=3 " Show 3 lines of context around the cursor. | |
set title " Set the terminal's title | |
set visualbell " No beeping. | |
set nobackup " Don't make a backup before overwriting a file. | |
set nowritebackup " And again. | |
set backupdir=~/tmp " Set backup directory. | |
set noswapfile " Don't make swap files. | |
set directory=$HOME/.vim/tmp//,. " Keep swap files in one location. | |
set laststatus=2 " Show the status line all the time |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment