back function bashrc
This commit is contained in:
parent
6f14733d9f
commit
4a03cf20dd
2 changed files with 7 additions and 2 deletions
5
bashrc
5
bashrc
|
@ -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
|
||||||
|
|
4
inputrc
4
inputrc
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue