back function bashrc

This commit is contained in:
Frank Villaro-Dixon 2014-06-06 21:43:37 +02:00
parent 6f14733d9f
commit 4a03cf20dd
2 changed files with 7 additions and 2 deletions

5
bashrc
View file

@ -173,6 +173,7 @@ function fuck {
function cd #{{{ function cd #{{{
{ {
MY_LAST=`pwd`
if [ $# -eq 0 ]; then if [ $# -eq 0 ]; then
builtin cd ~ && cons_set > /dev/null && ls builtin cd ~ && cons_set > /dev/null && ls
else else
@ -181,6 +182,10 @@ function cd #{{{
} }
#}}} #}}}
function back {
cd $MY_LAST
}
function pdfsearch #{{{ function pdfsearch #{{{
{ {
for pdf in `find ./ -name "*.pdf"`; do for pdf in `find ./ -name "*.pdf"`; do

View file

@ -1,4 +1,4 @@
#set editing-mode vi #set editing-mode vi
#set keymap vi #set keymap vi
#set completion-ignore-case on set completion-ignore-case on
#set show-all-if-ambiguous on set show-all-if-ambiguous on