Permalink
Browse files

Add bash .profile contents.

  • Loading branch information...
1 parent 6d2c3ce commit 4dd6b20e94d7145f80ac6d1c2e32edee11441224 @mkelley33 committed Jul 15, 2012
Showing with 42 additions and 1 deletion.
  1. +40 −0 .profile
  2. +2 −1 .zshrc
View
@@ -0,0 +1,40 @@
+export SSH_ENV=$HOME/.ssh/environment
+
+# Exec this line to see (.) hidden files in MacVim open dialog.
+# defaults write org.vim.MacVim AppleShowAllFiles 1
+
+function start_agent {
+ /usr/bin/ssh-agent > ${SSH_ENV}
+ chmod 600 ${SSH_ENV}
+ . ${SSH_ENV} > /dev/null
+ /usr/bin/ssh-add;
+}
+
+# Source SSH settings, if applicable
+. ${SSH_ENV} > /dev/null
+ps -x | grep "^ *${SSH_AGENT_PID}" | grep ssh-agent$ > /dev/null || {
+ start_agent;
+}
+
+export PATH="/usr/local/bin:/usr/local/mysql/bin:/Applications:${PATH}"
+alias subl='/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl'
+#export EDITOR='mvim -f'
+export EDITOR='subl -w'
+export VISUAL='mvim -f'
+export MYVIMRC='~/.vimrc'
+alias vim='mvim -v'
+
+export HISTCONTROL=ignoreboth
+export HISTSIZE=10000
+
+alias duh='du -cms * | sort -rn'
+alias ll="ls -lahF"
+alias cpip="ifconfig \
+| grep en1 -A1 \
+| grep -Eo 'inet\ [1-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' \
+| cut -c 6- \
+| xargs -I {} echo {}:'3000' \
+| pbcopy"
+
+source ~/.bashrc
+source ~/.git-completion.bash
View
3 .zshrc
@@ -24,7 +24,7 @@ ZSH_THEME="sunrise"
# DISABLE_AUTO_TITLE="true"
# Uncomment following line if you want red dots to be displayed while waiting for completion
-# COMPLETION_WAITING_DOTS="true"
+COMPLETION_WAITING_DOTS="true"
# 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/
@@ -33,6 +33,7 @@ plugins=(git rails rails3 rvm)
source $ZSH/oh-my-zsh.sh
unsetopt correct_all
+
source ~/.profile
[[ -r $rvm_path/scripts/completion ]] && . $rvm_path/scripts/completion

0 comments on commit 4dd6b20

Please sign in to comment.