Skip to content

Commit

Permalink
Move some things from bashrc over to profile
Browse files Browse the repository at this point in the history
  • Loading branch information
joho committed Mar 7, 2017
1 parent 2a59728 commit 7bdd631
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 29 deletions.
23 changes: 23 additions & 0 deletions bash_profile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# tee hee, i frickin love little chatty shit when i log in
fortune /Users/joho/Projects/home/programmers_oblique_strategies | cowsay

eval $(docker-machine env 99dev)

[[ -s ~/.bashrc ]] && source ~/.bashrc

complete -C aws_completer aws
complete -C aws_completer sudo
complete -C aws_completer aws-vault

# project shortcuts with completion
export PROJECTS="$HOME/Projects"

p() {
cd "$PROJECTS/$1" || exit
}

_p() {
COMPREPLY=( $(compgen -W "$(ls $PROJECTS | grep -vE \"^_\")" -- ${COMP_WORDS[COMP_CWORD]} ) )
}

complete -F _p p
29 changes: 0 additions & 29 deletions bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ PS4='+ '
}
proml

# git checkout tab auto completion
. $(brew --prefix)/opt/git/etc/bash_completion.d/git-completion.bash

# aliases
alias publickey='cat ~/.ssh/id_rsa.pub | pbcopy'
alias gpr='git pull --rebase'
Expand All @@ -65,37 +62,11 @@ alias 99mysql="mysql -h mysql.dockervm -u root -P 49801"
git clone "git://github.com/99designs/$1" ~/Projects/99designs/"$1"
}

# project shortcuts with completion
export PROJECTS="$HOME/Projects"

p() {
cd "$PROJECTS/$1" || exit
}

_p() {
COMPREPLY=( $(compgen -W "$(ls $PROJECTS | grep -vE \"^_\")" -- ${COMP_WORDS[COMP_CWORD]} ) )
}

complete -F _p p

complete -C aws_completer aws

# stop ctrl-D logging me out
shopt -s -o ignoreeof

# allow me to ctrl-z, ctrl-f for some retro multitasking
export HISTIGNORE="fg*"
bind '"\C-f": "fg %-\n"'

if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi

# use vmware by default for vagrant
export VAGRANT_DEFAULT_PROVIDER=vmware_fusion

# if kernel_task is going weird read http://www.rdoxenham.com/?p=259 (maybe make an alias to help)

### Added by the Heroku Toolbelt
export PATH="/usr/local/heroku/bin:$PATH"

# Visual Studio Code
function code () { VSCODE_CWD="$PWD" open -n -b "com.microsoft.VSCode" --args $*; }

0 comments on commit 7bdd631

Please sign in to comment.