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