Bash Cygwin Profile


/ Published in: Bash
Save to your folder(s)

Sample BASH .profile for use in cygwin for windows.


Copy this code and paste it in your HTML
  1. # .profile
  2.  
  3. # Define some colors first:
  4. red='\e[0;31m'
  5. RED='\e[1;31m'
  6. green='\e[0;32m'
  7. GREEN='\e[1;32m'
  8. yellow='\e[0;33m'
  9. YELLOW='\e[1;33m'
  10. blue='\e[0;34m'
  11. BLUE='\e[1;34m'
  12. pink='\e[0;35m'
  13. PINK='\e[1;35m'
  14. cyan='\e[0;36m'
  15. CYAN='\e[1;36m'
  16. NC='\e[0m'
  17.  
  18. # Colors and Prompt
  19. export PS1="\[\e]2;\u@\h:\w\007$yellow\]\u\[$green\]@\[$yellow\]\h:\[$pink\]\w\n\[$GREEN\]>"
  20.  
  21. set -o vi
  22. export EDITOR=vi
  23.  
  24. # History
  25. export HISTSIZE=1000
  26. export HISTFILE=~/.bash_history
  27. export HISTFILESIZE=1000
  28.  
  29. # Alias
  30. alias ls='ls -FG'
  31. alias ll='ls -l'
  32. alias cd..='cd ..'
  33.  
  34. # Working directory
  35. cd c:

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.