Skip to content

Instantly share code, notes, and snippets.

@mincong-h
Last active November 12, 2017 20:22
Show Gist options
  • Select an option

  • Save mincong-h/44d6f5949f3f047c3e4e871c8ed869bb to your computer and use it in GitHub Desktop.

Select an option

Save mincong-h/44d6f5949f3f047c3e4e871c8ed869bb to your computer and use it in GitHub Desktop.

Revisions

  1. mincong-h revised this gist Nov 12, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion .bash_profile
    Original file line number Diff line number Diff line change
    @@ -8,7 +8,7 @@ GIT_PS1_SHOWDIRTYSTATE=1
    GIT_PS1_SHOWUNTRACKEDFILES=1
    GIT_PS1_SHOWSTASHSTATE=1
    GIT_PS1_SHOWUPSTREAM="auto verbose"
    PS1='\W $(__git_ps1 "(%s) ")\$ '
    PS1='\W \033[38;5;015m$(__git_ps1 "(%s) ")\033[0m\$ '

    # MySQL
    export PATH="/usr/local/mysql/bin:$PATH"
  2. mincong-h revised this gist Nov 10, 2017. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions .bash_profile
    Original file line number Diff line number Diff line change
    @@ -10,6 +10,9 @@ GIT_PS1_SHOWSTASHSTATE=1
    GIT_PS1_SHOWUPSTREAM="auto verbose"
    PS1='\W $(__git_ps1 "(%s) ")\$ '

    # MySQL
    export PATH="/usr/local/mysql/bin:$PATH"

    # Nuxeo
    . /Users/mincong/github/nuxeo/scripts/gitfunctions.sh
    export PATH=/Applications/LibreOffice.app/Contents/MacOS:$PATH
  3. mincong-h revised this gist Oct 17, 2017. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion .bash_profile
    Original file line number Diff line number Diff line change
    @@ -29,4 +29,5 @@ alias mvnnsu='mvn clean install -DskipTests -nsu'
    alias mvnnvd='mvn clean install -DskipTests -nsu -pl "!nuxeo-view-designer"'
    alias todo="vim ${HOME}/Desktop/todo.md"
    alias grep="`which grep` --color=auto"
    alias vimbr='vim "$(git rev-parse --abbrev-ref HEAD).md"'
    alias vimbr='vim "$(git rev-parse --abbrev-ref HEAD).md"'
    alias chrome="open /Applications/Google\ Chrome.app/"
  4. mincong-h revised this gist Oct 14, 2017. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions .bash_profile
    Original file line number Diff line number Diff line change
    @@ -29,3 +29,4 @@ alias mvnnsu='mvn clean install -DskipTests -nsu'
    alias mvnnvd='mvn clean install -DskipTests -nsu -pl "!nuxeo-view-designer"'
    alias todo="vim ${HOME}/Desktop/todo.md"
    alias grep="`which grep` --color=auto"
    alias vimbr='vim "$(git rev-parse --abbrev-ref HEAD).md"'
  5. mincong-h revised this gist Oct 2, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion .bash_profile
    Original file line number Diff line number Diff line change
    @@ -28,4 +28,4 @@ alias ll='ls -lG'
    alias mvnnsu='mvn clean install -DskipTests -nsu'
    alias mvnnvd='mvn clean install -DskipTests -nsu -pl "!nuxeo-view-designer"'
    alias todo="vim ${HOME}/Desktop/todo.md"
    alias grep="`which grep` --color=always"
    alias grep="`which grep` --color=auto"
  6. mincong-h revised this gist Oct 2, 2017. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion .bash_profile
    Original file line number Diff line number Diff line change
    @@ -27,4 +27,5 @@ export LSCOLORS=GxFxCxDxBxegedabagaced
    alias ll='ls -lG'
    alias mvnnsu='mvn clean install -DskipTests -nsu'
    alias mvnnvd='mvn clean install -DskipTests -nsu -pl "!nuxeo-view-designer"'
    alias unjar='jar xf'
    alias todo="vim ${HOME}/Desktop/todo.md"
    alias grep="`which grep` --color=always"
  7. mincong-h revised this gist Sep 18, 2017. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion .bash_profile
    Original file line number Diff line number Diff line change
    @@ -24,4 +24,7 @@ export CLICOLOR=1
    export LSCOLORS=GxFxCxDxBxegedabagaced

    # Alias
    alias ll='ls -lG'
    alias ll='ls -lG'
    alias mvnnsu='mvn clean install -DskipTests -nsu'
    alias mvnnvd='mvn clean install -DskipTests -nsu -pl "!nuxeo-view-designer"'
    alias unjar='jar xf'
  8. mincong-h revised this gist Jun 4, 2017. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion .bash_profile
    Original file line number Diff line number Diff line change
    @@ -21,4 +21,7 @@ export JAVA_OPTS="-Xmx4g -Xms3g"

    # Terminal Highlight
    export CLICOLOR=1
    export LSCOLORS=GxFxCxDxBxegedabagaced
    export LSCOLORS=GxFxCxDxBxegedabagaced

    # Alias
    alias ll='ls -lG'
  9. mincong-h created this gist Feb 24, 2017.
    24 changes: 24 additions & 0 deletions .bash_profile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,24 @@
    # Git prompt
    export GIT_HOME=/Users/mincong/github/git
    source $GIT_HOME/contrib/completion/git-prompt.sh
    # Git completion; import the file corresponding to your Shell:
    source $GIT_HOME/contrib/completion/git-completion.bash
    # Git additional custom changes
    GIT_PS1_SHOWDIRTYSTATE=1
    GIT_PS1_SHOWUNTRACKEDFILES=1
    GIT_PS1_SHOWSTASHSTATE=1
    GIT_PS1_SHOWUPSTREAM="auto verbose"
    PS1='\W $(__git_ps1 "(%s) ")\$ '

    # Nuxeo
    . /Users/mincong/github/nuxeo/scripts/gitfunctions.sh
    export PATH=/Applications/LibreOffice.app/Contents/MacOS:$PATH
    export PATH=/Applications/Firefox42.app/Contents/MacOS:$PATH

    # Java
    export MAVEN_OPTS="-Xmx4g -Xms3g"
    export JAVA_OPTS="-Xmx4g -Xms3g"

    # Terminal Highlight
    export CLICOLOR=1
    export LSCOLORS=GxFxCxDxBxegedabagaced