Created
          September 25, 2012 16:02 
        
      - 
      
- 
        Save ncimino/3782782 to your computer and use it in GitHub Desktop. 
    My .bashrc configuration
  
        
  
    
      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
    
  
  
    
  | # .bashrc | |
| # Remember to: | |
| # cd ~ | |
| # wget https://raw.github.com/git/git/master/contrib/completion/git-prompt.sh -O .git-prompt.sh | |
| # wget https://raw.github.com/git/git/master/contrib/completion/git-completion.bash -O .git-completion.sh | |
| alias rm='rm -i' | |
| alias cp='cp -i' | |
| alias mv='mv -i' | |
| alias c='cd ..' | |
| alias la='ls -la' | |
| alias gs='git status' | |
| alias ga='git add' | |
| alias grm='git rm' | |
| alias gmv='git mv' | |
| alias gph='git push' | |
| alias gpl='git pull' | |
| # Source global definitions | |
| if [ -f /etc/bashrc ]; then | |
| . /etc/bashrc | |
| fi | |
| # Setup git auto-complete and branch | |
| source ~/.git-prompt.sh | |
| source ~/.git-completion.sh | |
| # Prompt | |
| PS1='\[\e[0;32m\]\u\[\e[m\]@\[\e[0;31m\]\h\[\e[m\]:\[\e[0;36m\]\w\[\e[m\]\[\e[0;35m\]$(__git_ps1 " (%s)")\n\[\e[m\]$ ' | |
| # Auto-complete | |
| complete -W "$(echo $(grep '^ssh ' ~/.bash_history | sort -u | sed 's/^ssh //'))" ssh | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment