1 points · by juanbrein · 13y ago · 5 comments
Why not:
alias .='cd ../'
and voila from 5 to 1. That is what I call a quick win :-)
If you really want to optimize this, there's always your .inputrc.
"\e[24~": "cd ..\n"
For lots of terminals, this maps your F12 key to go up a level in the directory hierarchy, no subsequent press of the enter key required.
~$ echo date > d.sh
~$ d.sh
-bash: d.sh: command not found
~$ . d.sh
06:37:21 EDT 2013
~$ alias .='cd ../'
~$ . d.sh
/home$ Is not works!
But another alias with no previous meaning would do well - i use 'up' :)Cheers
Juan