Advertisement
Guest User

Untitled

a guest
Nov 28th, 2012
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. export TERM=xterm-256color
  2. source /etc/bash_completion
  3. source /etc/bash_completion.d/git
  4. ### PS1 SETTINGS =======================================================
  5.  
  6. # show more git info in PS1
  7. export GIT_PS1_SHOWDIRTYSTATE="true"
  8. export GIT_PS1_SHOWUNTRACKEDFILES="true"
  9. export GIT_PS1_SHOWSTASHSTATE="true"
  10.  
  11. # colors
  12. export PS1_GREY="\[$(tput bold; tput setaf 0)\]"
  13. export PS1_GREEN="\[$(tput bold; tput setaf 2)\]"
  14. export PS1_YELLOW="\[$(tput bold; tput setaf 3)\]"
  15. export PS1_MAGENTA="\[$(tput bold; tput setaf 5)\]"
  16. export PS1_CYAN="\[$(tput bold; tput setaf 6)\]"
  17. export PS1_WHITE="\[$(tput bold; tput setaf 7)\]"
  18. export PS1_RESET="\[$(tput sgr0)\]"
  19.  
  20. export GIT_INFO=$(git branch &>/dev/null && echo "${PS1_GREY}on ${PS1_WHITE}$(__git_ps1 '%s')")
  21.  
  22.  
  23. export PS1="${PS1_MAGENTA}\u ${PS1_GREY}at${PS1_YELLOW} \h ${PS1_GREY}in${PS1_GREEN} \w ${GIT_INFO}\
  24. \n${PS1_WHITE}\\\$${PS1_RESET} "
  25.  
  26. alias imgur='~/dotfiles/bash/imgurbash.sh'
  27. alias screenfetch='screenfetch -s'
  28. alias ls='ls --color=auto'
  29. alias dir='dir --color=auto'
  30. alias vdir='vdir --color=auto'
  31. alias grep='grep --color=auto'
  32. alias fgrep='fgrep --color=auto'
  33. alias egrep='egrep --color=auto'
  34. alias thetime='date +"It is %r on %A, %B %e".'
  35. alias whoami='echo "You are" $USER'
  36. alias whatshell='echo "You are using" $SHELL'
  37. alias hostname='echo "You are at" $HOSTNAME'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement