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/sh | |
REPO=$HOME/Dropbox/Dotfiles | |
PLATFORM=$(uname) | |
die() { | |
echo "fatal: $1" | |
exit 1 | |
} |
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
# function to change directory to the one set in the last opened finder. | |
cdf () { | |
currFolderPath=$( /usr/bin/osascript <<" EOT" | |
tell application "Finder" | |
try | |
set currFolder to (folder of the front window as alias) | |
on error | |
set currFolder to (path to desktop folder as alias) | |
end try | |
POSIX path of currFolder |
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 has("gui_macvim") | |
" Command-T for CommandT | |
macmenu &File.New\ Tab key=<D-T> | |
map <D-t> :CommandT<CR> | |
imap <D-t> <Esc>:CommandT<CR> | |
" Command-Return for fullscreen | |
macmenu Window.Toggle\ Full\ Screen\ Mode key=<D-CR> | |
" Command-Shift-F for Ack |
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 $SHELL =~ 'bin/fish' | |
set shell=/bin/sh | |
endif | |
" Needed on some linux distros. | |
" see http://www.adamlowe.me/2009/12/vim-destroys-all-other-rails-editors.html | |
filetype off | |
call pathogen#runtime_append_all_bundles() | |
call pathogen#helptags() |
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 | |
function is_file_exists() { | |
local f="$1" | |
[[ -f "$f" ]] && return 0 || return 1 | |
} | |
function parse_git_branch { | |
ref=$(git symbolic-ref HEAD 2> /dev/null) || return |
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
# Ben's .bash_profile file | |
# path settings | |
PATH="/usr/local/bin:/usr/local/sbin:$PATH" # if not already present | |
PATH="$PATH:/usr/local/mysql/bin" | |
PATH="$PATH:/usr/local/mysql/support-files/" | |
PATH="$PATH:~/scripts:" | |
export PATH=$PATH | |
export EDITOR='mate' |
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
" .vimrc based on Ryan Tomayco's vim file | |
" https://github.com/rtomayko/dotfiles/blob/rtomayko/.vimrc | |
" --------------------------------------------------------------------------- | |
" General | |
" --------------------------------------------------------------------------- | |
set nocompatible " essential |