From 6242d1dcc6f386a9562ca382597cce08c56554fc Mon Sep 17 00:00:00 2001 From: Mika Suomalainen Date: Wed, 17 Aug 2011 15:52:54 +0300 Subject: [PATCH] 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. --- README | 2 ++ bash_exports | 4 ---- bashrc | 6 ++++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README b/README index 3e5d65da..f138c22f 100644 --- a/README +++ b/README @@ -17,6 +17,8 @@ Notices: bashrc: I have uncommented line 42. bash_exports: The default editor is nano (line 4). 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: Author of this git repository is not responsible for any data loss or any other harms, which might be diff --git a/bash_exports b/bash_exports index 261e6d6d..96de8c56 100644 --- a/bash_exports +++ b/bash_exports @@ -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. export EDITOR=nano @@ -12,5 +10,3 @@ export LC_ALL # Sets your timezone. 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." diff --git a/bashrc b/bashrc index 67878afb..31295c13 100644 --- a/bashrc +++ b/bashrc @@ -1,5 +1,4 @@ -echo "Hi, thanks for using this bashrc. You must now comment lines 1 and 2 in ~/.bashrc -WARNING: DO NOT BLINDLY APPLY THIS!" +echo "Please see the README file." # ~/.bashrc: executed by bash(1) for non-login shells. # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) @@ -108,6 +107,9 @@ fi # End of default things. # Start of my additions. +#Shopt settings. +shopt -s autocd + # Sources everything. source ~/.bash_aliases source ~/.bash_exports