Skip to content

Commit

Permalink
more changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jbgo committed May 27, 2014
1 parent 8c2c358 commit e591fb8
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 2 deletions.
13 changes: 13 additions & 0 deletions config/bash/aliases.bash
Expand Up @@ -10,6 +10,7 @@ alias pjson='python -mjson.tool'
alias vb='VBoxManage'
alias cpkey='cat ~/.ssh/id_rsa.pub | pbcopy'
alias til='grep -d recurse -h `date "+%m/%d"` /usr/share/calendar/'
alias jbgo='cd ~/projects/opensource/jbgo'

# git
alias g='git'
Expand All @@ -36,6 +37,11 @@ alias cuke='bx cucumber'
alias h=heroku
alias hr='heroku run'

# ansible
alias an=ansible
alias anp=ansible-playbook
alias ang=ansible-galaxy

function markdown() {
if [ `which redcarpet` ];
then
Expand All @@ -46,3 +52,10 @@ function markdown() {
return 1
fi
}

function git_branch_wipeout() {
remote=$2
if [[ ! $remote ]]; then remote=origin; fi
git branch -d $1 && git push $remote :refs/heads/$1
}
alias gbw=git_branch_wipeout
1 change: 1 addition & 0 deletions config/bash/completion.bash
Expand Up @@ -24,6 +24,7 @@ _complete_grb() {
alias grbt='grb track'
complete -F _complete_grb grbt
complete -F _complete_grb grb
complete -F _complete_grb gbw

_complete_ssh_hosts() {
if [ -f ~/.ssh/config ]; then
Expand Down
1 change: 1 addition & 0 deletions config/bashrc
Expand Up @@ -58,6 +58,7 @@ function nametab() {
# .gitignore contains an entry for dotfiles/local/
[[ -s ~/dotfiles/local/bashrc ]] && source ~/dotfiles/local/bashrc

export rvmsudo_secure_path=1
[[ -s ~/.rvm/scripts/rvm ]] && source ~/.rvm/scripts/rvm # This loads RVM into a shell session.
[[ -s /usr/local/sbin ]] && export PATH=$PATH:/usr/local/sbin
[[ -s $HOME/bin ]] && export PATH=$HOME/bin:$PATH
Expand Down
8 changes: 6 additions & 2 deletions config/gitconfig
Expand Up @@ -16,6 +16,7 @@
cpx = cherry-pick -x
d = diff --color
dc = diff --color --cached
fo = fetch origin
g = gc
l = log --color
ld = log -p --color
Expand All @@ -28,8 +29,8 @@
ra = rebase --abort
rb = rebase master
rc = rebase --continue
rs = reset HEAD .
rsh = reset --hard HEAD
rs = reset HEAD --
rshh = reset --hard HEAD
s = status
pull = pull --ff-only
undo = reset --soft HEAD^
Expand All @@ -44,3 +45,6 @@

[push]
default = current
[filter "media"]
clean = git-media-clean %f
smudge = git-media-smudge %f
1 change: 1 addition & 0 deletions config/gitignore
Expand Up @@ -3,3 +3,4 @@ log/
tmp/
.bundle
.sass-cache/
tags

0 comments on commit e591fb8

Please sign in to comment.