See Versions section of the file for details
| ... | ... |
@@ -1,8 +1,8 @@ |
| 1 | 1 |
# Title: .bashrc |
| 2 | 2 |
# Author: Frédéric CHEVALIER <f15.chevalier@gmail.com> |
| 3 |
-# Version: 1.7 |
|
| 3 |
+# Version: 1.8 |
|
| 4 | 4 |
# Created in: 2012-05-26 |
| 5 |
-# Modified in: 2014-09-25 |
|
| 5 |
+# Modified in: 2014-10-14 |
|
| 6 | 6 |
|
| 7 | 7 |
|
| 8 | 8 |
|
| ... | ... |
@@ -19,6 +19,7 @@ |
| 19 | 19 |
# Versions # |
| 20 | 20 |
#==========# |
| 21 | 21 |
|
| 22 |
+# v1.8 - 2014-10-14: HISTIGNORE correction and adding / start_agent function output improved |
|
| 22 | 23 |
# v1.7 - 2014-09-25: start_agent function improved |
| 23 | 24 |
# v1.6 - 2014-08-16: new history entries to ignore / screen and :q aliases |
| 24 | 25 |
# v1.5 - 2014-08-06: autocd set on / R alias added /bk function turned in a separate script / SSH environment setup moved in bash_profile |
| ... | ... |
@@ -60,8 +61,7 @@ export HISTCONTROL=ignoreboth |
| 60 | 61 |
|
| 61 | 62 |
# Ignore some controlling instructions |
| 62 | 63 |
# The '&' is a special pattern which suppresses duplicate entries. |
| 63 |
-export HISTIGNORE=$'[ \t]*:&:[fb]g:exit:*q:screen*' |
|
| 64 |
-# export HISTIGNORE=$'[ \t]*:&:[fb]g:exit:ls' # Ignore the ls command as well |
|
| 64 |
+export HISTIGNORE=$'[ \t]*:&:[fb]g:l[slar]:l:ll[ar]:exit:q:?q:s:ns:screen*' |
|
| 65 | 65 |
|
| 66 | 66 |
# Whenever displaying the prompt, write the previous line to disk |
| 67 | 67 |
#export PROMPT_COMMAND="history -a" |
| ... | ... |
@@ -352,7 +352,7 @@ function start_agent {
|
| 352 | 352 |
# SSH agent environment |
| 353 | 353 |
echo -e "\n${msg1}"
|
| 354 | 354 |
ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}"
|
| 355 |
- echo -e "${msg2}\n"
|
|
| 355 |
+ echo -e "${msg2}\n\n"
|
|
| 356 | 356 |
chmod 600 "${SSH_ENV}"
|
| 357 | 357 |
source "${SSH_ENV}" > /dev/null
|
| 358 | 358 |
|