Skip to content

Instantly share code, notes, and snippets.

@dlsso
Last active July 15, 2016 23:15
Show Gist options
  • Select an option

  • Save dlsso/f8155de8f8eba2037fb6 to your computer and use it in GitHub Desktop.

Select an option

Save dlsso/f8155de8f8eba2037fb6 to your computer and use it in GitHub Desktop.

Revisions

  1. dlsso revised this gist Jul 15, 2016. 2 changed files with 27 additions and 12 deletions.
    12 changes: 0 additions & 12 deletions aliases
    Original file line number Diff line number Diff line change
    @@ -1,12 +0,0 @@
    alias ..='cd ..'
    alias ...='cd ../..'
    md() {
    mkdir $1
    cd $1
    }
    gc() {
    git add -A
    git commit -m "$1"
    }
    alias gp='git push'
    alias gs='git stash'
    27 changes: 27 additions & 0 deletions bash
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,27 @@
    export CLICOLOR=1
    export LSCOLORS=GxFxCxDxBxegedabagaced
    test -f ~/.git-completion.bash && . $_


    alias ..='cd ..'
    alias ...='cd ../..'
    alias ip="ipconfig getifaddr en0"
    alias exip="curl http://ipecho.net/plain; echo"
    alias gp='git push'
    alias gs='git status'
    md() {
    mkdir $1
    cd $1
    }
    gc() {
    git add -A
    git commit -m "$1"
    }
    gpn() {
    local branch_name=`git symbolic-ref HEAD 2>/dev/null | cut -d"/" -f 3`
    git push -u origin $branch_name
    }
    prune() {
    git fetch -p
    git branch -vv | awk '/: gone]/{print $1}' | xargs git branch -d
    }
  2. dlsso created this gist Jan 15, 2015.
    12 changes: 12 additions & 0 deletions aliases
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    alias ..='cd ..'
    alias ...='cd ../..'
    md() {
    mkdir $1
    cd $1
    }
    gc() {
    git add -A
    git commit -m "$1"
    }
    alias gp='git push'
    alias gs='git stash'