Skip to content

Instantly share code, notes, and snippets.

@nateflink
Created May 5, 2015 21:58

Revisions

  1. nateflink created this gist May 5, 2015.
    9 changes: 9 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    #alias to reload the bash profile after adding an alias
    alias sourcebash="source ~/.bash_profile"

    #alias to quickly add an alias to the bash profile
    alias aliasappend=aliasappendfunction
    aliasappendfunction() {
    echo 'alias '$1'="'$2'"' >> ~/.bash_profile;
    sourcebash
    }