Guest User

Untitled

a guest
Jan 22nd, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.91 KB | None | 0 0
  1. # ~/.bashrc: executed by bash(1) for non-login shells.
  2. export TERM=xterm-color
  3. export LSCOLORS=DxGxcxdxCxegedabagacad
  4.  
  5. alias ls='ls -lahG'
  6. alias cp='cp -i'
  7. alias mv='mv -i'
  8. alias rm='rm -i'
  9. alias rehash='source ~/.bash_profile'
  10. alias df='df -h'
  11. alias du='du -h'
  12. alias tf='tail -f'
  13. alias less='less -r' # raw control characters
  14. alias grep='egrep --color' # show differences in colour
  15.  
  16. # enable color support of ls and also add handy aliases
  17. if [ -x /usr/bin/dircolors ]; then
  18. test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
  19. alias ls='ls --color=auto'
  20. #alias dir='dir --color=auto'
  21. #alias vdir='vdir --color=auto'
  22.  
  23. alias grep='grep --color=auto'
  24. alias fgrep='fgrep --color=auto'
  25. alias egrep='egrep --color=auto'
  26. fi
  27.  
  28. function proml {
  29. # Attribute{codes:
  30. # 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed
  31. # Text color codes:
  32. # 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white
  33. # Background color codes:
  34. # 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white
  35. # \[\e[01;36m\]
  36.  
  37. # PS1='\[\e]0;\w\a\]\n\[\e[01;33m\]\u\[\e[01;37m\]@\[\e[01;36m\]\h\[\e[01;37m\]\n\[\e[00;33m\]\w \[\e[0m\]\n\$ '
  38. # PS1='\[\e]0;\w\a\]\n\[\e[01;33m\]\u\[\e[01;37m\]@\[\e[01;36m\]\h\[\e[01;37m\]\n\[\e[00;33m\]\w \[\e[0m\]$(parse_git_branch)\n\$ '
  39.  
  40. # Deixa o usuario azul, versao do Ruby e Gemset amarela, Diretorio roxo, Git vermelho
  41. # rvm-prompt i = Interpretador v = Versao g = Gemset
  42. PS1='\[\033[34m\]\u \[\033[1;33m\]`~/.rvm/bin/rvm-prompt i v g \[\033[35m\]\ \w
  43. `\[\033[0;31m\] `git branch 2> /dev/null | grep -e ^* | sed -E s/^\\\\\*\ \(.+\)$/\(\\\\\1\)\ /
  44. `\[\033[37m\]$\[\033[00m\] '
  45. export PS1
  46. }
  47.  
  48. proml
  49. umask 002
  50. #PS1='[\h]$ '
  51. #PS1='[\h]$ '
  52.  
  53. export PYTHONPATH="$PYTHONPATH:$HOME/.python/site-packages/"
  54.  
  55. [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session.
Add Comment
Please, Sign In to add comment