Last active
December 26, 2015 03:39
-
-
Save rafaellucio/f355dc9982471a117d60 to your computer and use it in GitHub Desktop.
Developer Config Files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #RVM Configure | |
| PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting | |
| [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function | |
| #Color Bash and replace folder$branch | |
| function parse_git_branch() { | |
| git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
| } | |
| RED="\[\033[0;31m\]" | |
| YELLOW="\[\033[0;33m\]" | |
| GREEN="\[\033[0;32m\]" | |
| NO_COLOR="\[\033[0;0m\]" | |
| PS1="rafaellucio -> $GREEN\W$NO_COLOR$YELLOW\$(parse_git_branch)$GREEN\$$NO_COLOR " | |
| #NPM Node | |
| export NPM_HOME=$HOME/.npm-packages | |
| export PATH=$NPM_HOME/bin:$PATH | |
| export NODE_PATH=$NODE_PATH:/home/rafaellucio/.npm-packages/lib/node_modules | |
| export NVM_DIR="/home/rafaellucio/.nvm" | |
| [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm | |
| [[ -r $NVM_DIR/bash_completion ]] && . $NVM_DIR/bash_completion | |
| #aliases | |
| alias ls='ls --color=auto' | |
| alias ls='ls -h --color=auto' | |
| alias ll='ls -lhF --color=auto' | |
| alias la='ls -lhA --color=auto' | |
| alias l='ls -CF --color=auto' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment