adding a little locality..
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user