adding a little locality..

This commit is contained in:
ville rantanen
2013-05-07 16:47:45 +03:00
parent e3c7cfe099
commit 0aba1a81b8

View File

@@ -1,4 +1,7 @@
function cd_history () {
local old
local p
local b
if [ -z "$1" ]
then \cd "$HOME"
return
@@ -15,7 +18,8 @@ alias cd=cd_history
function qcd() {
local OPTIND
local OPTARG
local opt
while getopts aLl:hm opt
do case "$opt" in
a)
@@ -98,6 +102,9 @@ function whenfilechanges() {
[ -e "$1" ] || { echo $1 not found
return
}
local fname
local otime
local ntime
fname=$1
shift 1