We Recommend

bash Cookbook: Solutions and Examples for bash Users bash Cookbook: Solutions and Examples for bash Users
bash Cookbook teaches shell scripting the way Unix masters practice the craft. It presents a variety of recipes and tricks for all levels of shell programmers so that anyone can become a proficient user of the most common Unix shell -- the bash shell -- and cygwin or other popular Unix emulation packages.


Posted By

mbadran on 06/16/08


Tagged

Shell Bash configuration


Versions (?)


My .bashrc


Published in: Bash 


Additions to Debian's default .bashrc.

  1. # Comment in the above and uncomment this below for a color prompt
  2. PS1='${debian_chroot:+($debian_chroot)}[$?/\t][\e[36m\w\e[m] '
  3.  
  4. # Alias definitions.
  5. # You may want to put all your additions into a separate file like
  6. # ~/.bash_aliases, instead of adding them here directly.
  7. # See /usr/share/doc/bash-doc/examples in the bash-doc package.
  8.  
  9. if [ -f ~/.bash_aliases ]; then
  10. . ~/.bash_aliases
  11. fi
  12.  
  13. # enable color support of ls and also add handy aliases
  14. if [ "$TERM" != "dumb" ]; then
  15. eval `dircolors $HOME/.dir_colors`
  16. alias ls='ls --color=auto'
  17. fi
  18.  
  19. ### more configs
  20.  
  21. # ITL prayer times
  22. #export IPT_DATA='Melbourne -37.8167 144.9667 +10 5'
  23. export IPT_DATA='Sydney -33.888241 151.204041 +10 5'

Report this snippet 

You need to login to post a comment.