Skip to content

Instantly share code, notes, and snippets.

@nickautomatic
Last active January 19, 2017 01:52
Show Gist options
  • Select an option

  • Save nickautomatic/3aba0e4c24e37972f057 to your computer and use it in GitHub Desktop.

Select an option

Save nickautomatic/3aba0e4c24e37972f057 to your computer and use it in GitHub Desktop.

Revisions

  1. nickautomatic revised this gist Jan 19, 2017. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions .bashrc
    Original file line number Diff line number Diff line change
    @@ -2,6 +2,9 @@
    export PATH=/c/Program\ Files/cwRsync/:/c/Users/Nick/AppData/Roaming/npm/:$PATH
    export VAGRANT_HOME=/c/HashiCorp/Vagrant/.vagrant.d/

    ## Custom Bash Prompt:
    export PS1='\[\033]0;$MSYSTEM:${PWD//[^[:ascii:]]/?}\007\]\n\[\033[32m\]\u@\h \[\033[33m\]\w\[\033[36m\]`__git_ps1`\[\033[0m\]\n$ '

    ## For nice diffs:
    # install diff-so-fancy (npm -g diff-so-fancy)
    # set pager to use it (git config --global core.pager "diff-so-fancy | less --tabs=4 -RFX")
  2. nickautomatic revised this gist Oct 12, 2016. 1 changed file with 3 additions and 7 deletions.
    10 changes: 3 additions & 7 deletions .bashrc
    Original file line number Diff line number Diff line change
    @@ -2,13 +2,9 @@
    export PATH=/c/Program\ Files/cwRsync/:/c/Users/Nick/AppData/Roaming/npm/:$PATH
    export VAGRANT_HOME=/c/HashiCorp/Vagrant/.vagrant.d/

    ## Functions:
    function strip_diff_leading_symbols(){
    color_code_regex="(\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K])"

    # actually strips the leading symbols
    sed -r "s/^($color_code_regex)[\+\-]/\1 /g"
    }
    ## For nice diffs:
    # install diff-so-fancy (npm -g diff-so-fancy)
    # set pager to use it (git config --global core.pager "diff-so-fancy | less --tabs=4 -RFX")

    ## FuelPHP:
    alias oil='php oil'
  3. nickautomatic revised this gist Jul 12, 2016. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions .bashrc
    Original file line number Diff line number Diff line change
    @@ -27,6 +27,7 @@ alias gr='git remote'
    alias grb='git rebase'
    alias grs='git reset'
    alias gs='git status'
    alias kraken='~/AppData/Local/gitkraken/Update.exe --processStart gitkraken.exe'

    ## Vagrant
    alias v='vagrant'
  4. nickautomatic revised this gist Feb 23, 2016. 1 changed file with 8 additions and 0 deletions.
    8 changes: 8 additions & 0 deletions .bashrc
    Original file line number Diff line number Diff line change
    @@ -2,6 +2,14 @@
    export PATH=/c/Program\ Files/cwRsync/:/c/Users/Nick/AppData/Roaming/npm/:$PATH
    export VAGRANT_HOME=/c/HashiCorp/Vagrant/.vagrant.d/

    ## Functions:
    function strip_diff_leading_symbols(){
    color_code_regex="(\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K])"

    # actually strips the leading symbols
    sed -r "s/^($color_code_regex)[\+\-]/\1 /g"
    }

    ## FuelPHP:
    alias oil='php oil'

  5. nickautomatic revised this gist Feb 23, 2016. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions .bashrc
    Original file line number Diff line number Diff line change
    @@ -22,6 +22,7 @@ alias gs='git status'

    ## Vagrant
    alias v='vagrant'
    alias homestead='function __homestead() { (cd /c/www/homestead && vagrant $*); unset -f __homestead; }; __homestead'

    ## Other commands:
    alias explore='explorer'
  6. nickautomatic revised this gist Nov 6, 2015. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion .bashrc
    Original file line number Diff line number Diff line change
    @@ -27,4 +27,7 @@ alias v='vagrant'
    alias explore='explorer'
    alias ll='ls -alFh --color'
    alias subl='subl -a' # adding -a flag to sublime prevents double window-opening
    alias x='exit'
    alias x='exit'

    echo
    echo 'Loaded custom .bashrc'
  7. nickautomatic revised this gist Oct 26, 2015. 1 changed file with 12 additions and 6 deletions.
    18 changes: 12 additions & 6 deletions .bashrc
    Original file line number Diff line number Diff line change
    @@ -1,10 +1,11 @@
    ## General:
    ## Global variables:
    export PATH=/c/Program\ Files/cwRsync/:/c/Users/Nick/AppData/Roaming/npm/:$PATH
    export VAGRANT_HOME=/c/HashiCorp/Vagrant/.vagrant.d/

    alias ll='ls -alFh --color'
    alias x='exit'
    ## FuelPHP:
    alias oil='php oil'

    ## Git:

    alias ga='git add'
    alias gb='git branch'
    alias gco='git checkout'
    @@ -19,6 +20,11 @@ alias grb='git rebase'
    alias grs='git reset'
    alias gs='git status'

    ## FuelPHP:
    ## Vagrant
    alias v='vagrant'

    alias oil='php oil'
    ## Other commands:
    alias explore='explorer'
    alias ll='ls -alFh --color'
    alias subl='subl -a' # adding -a flag to sublime prevents double window-opening
    alias x='exit'
  8. nickautomatic revised this gist Jul 10, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion .bashrc
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    ## General:

    alias ll='ls -la --color'
    alias ll='ls -alFh --color'
    alias x='exit'

    ## Git:
  9. nickautomatic revised this gist Jul 10, 2015. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion .bashrc
    Original file line number Diff line number Diff line change
    @@ -7,13 +7,16 @@ alias x='exit'

    alias ga='git add'
    alias gb='git branch'
    alias gch='git checkout'
    alias gco='git checkout'
    alias gcm='git commit -m'
    alias gd='git diff'
    alias gl="git log --graph --date-order --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(yellow) %an %Creset' --abbrev-commit --date=relative"
    alias gm='git merge'
    alias gpl='git pull'
    alias gps='git push'
    alias gr='git remote'
    alias grb='git rebase'
    alias grs='git reset'
    alias gs='git status'

    ## FuelPHP:
  10. nickautomatic created this gist May 22, 2014.
    21 changes: 21 additions & 0 deletions .bashrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,21 @@
    ## General:

    alias ll='ls -la --color'
    alias x='exit'

    ## Git:

    alias ga='git add'
    alias gb='git branch'
    alias gch='git checkout'
    alias gcm='git commit -m'
    alias gd='git diff'
    alias gl="git log --graph --date-order --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(yellow) %an %Creset' --abbrev-commit --date=relative"
    alias gpl='git pull'
    alias gps='git push'
    alias gr='git remote'
    alias gs='git status'

    ## FuelPHP:

    alias oil='php oil'