diff --git a/tcshrc.cmd.cwd b/tcshrc.cmd.cwd index 7ad9871..9717d9c 100644 --- a/tcshrc.cmd.cwd +++ b/tcshrc.cmd.cwd @@ -31,6 +31,7 @@ foreach dir ( ${cshenv_gitdirs} ) _debug "Indir check: ${dir}" set _dirarray=(${dir:s// /} ) + if( ${#_dirarray} < 2 ) break set _dirname="${_dirarray[1]}" set _dirstore="${_dirarray[2]}" if( "${_masked_cwd}" == "${_dirname}" ) then