Moved warnings to the README and enabled autocd in bashrc

It will not warn about anything anymore, it just wants you to see README file
where every warning is in notices. README file also tells how to disable that message
which wants everyone to see the README file.
This commit is contained in:
Mika Suomalainen 2011-08-17 15:52:54 +03:00
parent bc25b444aa
commit 6242d1dcc6
3 changed files with 6 additions and 6 deletions

2
README
View File

@ -17,6 +17,8 @@ Notices:
bashrc: I have uncommented line 42. bashrc: I have uncommented line 42.
bash_exports: The default editor is nano (line 4). bash_exports: The default editor is nano (line 4).
bashrc_exports: Timezone is Europe/Helsinki, line 14. bashrc_exports: Timezone is Europe/Helsinki, line 14.
bashrc: autocd is enabled.
bashrc: if you have read every notice, comment line 1 in your ~/.bashrc .
DISCLAIMER: DISCLAIMER:
Author of this git repository is not responsible for any data loss or any other harms, which might be Author of this git repository is not responsible for any data loss or any other harms, which might be

View File

@ -1,5 +1,3 @@
echo "Your ~/.bash_exports needs your attention. By the way, comment line 1 in it."
# Sets the default editor. Currently nano. # Sets the default editor. Currently nano.
export EDITOR=nano export EDITOR=nano
@ -12,5 +10,3 @@ export LC_ALL
# Sets your timezone. # Sets your timezone.
export TZ="/usr/share/zoneinfo/Europe/Helsinki" export TZ="/usr/share/zoneinfo/Europe/Helsinki"
echo "Please change your timezone in line 14 of ~/.bash_exports . It's currently set to Europe/Helsinki."
echo "If you life in Finland, you can safely comment lines 15 and 16 without even looking at them."

6
bashrc
View File

@ -1,5 +1,4 @@
echo "Hi, thanks for using this bashrc. You must now comment lines 1 and 2 in ~/.bashrc echo "Please see the README file."
WARNING: DO NOT BLINDLY APPLY THIS!"
# ~/.bashrc: executed by bash(1) for non-login shells. # ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
@ -108,6 +107,9 @@ fi
# End of default things. # End of default things.
# Start of my additions. # Start of my additions.
#Shopt settings.
shopt -s autocd
# Sources everything. # Sources everything.
source ~/.bash_aliases source ~/.bash_aliases
source ~/.bash_exports source ~/.bash_exports