1
0
mirror of https://github.com/Tarrasch/zsh-autoenv.git synced 2024-11-26 17:00:58 +02:00

Dirty fix for #14

This commit is contained in:
Srijan R Shetty 2014-12-08 23:19:49 +05:30
parent e8e7ca7e7d
commit 4e90cdc875

View File

@ -57,7 +57,7 @@ _autoenv_stack_entered_add() {
# Append it to the stack, and remember its mtime. # Append it to the stack, and remember its mtime.
_autoenv_stack_entered+=($env_file) _autoenv_stack_entered+=($env_file)
_autoenv_stack_entered_mtime[$env_file]=$(_autoenv_get_file_mtime $env_file) # _autoenv_stack_entered_mtime[$env_file]=$(_autoenv_get_file_mtime $env_file)
} }
_autoenv_get_file_mtime() { _autoenv_get_file_mtime() {
@ -72,8 +72,8 @@ _autoenv_get_file_mtime() {
_autoenv_stack_entered_remove() { _autoenv_stack_entered_remove() {
local env_file=$1 local env_file=$1
_autoenv_debug "[stack] removing: $env_file" 2 _autoenv_debug "[stack] removing: $env_file" 2
_autoenv_stack_entered[$_autoenv_stack_entered[(i)$env_file]]=() _autoenv_stack_entered[_autoenv_stack_entered[(i)$env_file]]=()
_autoenv_stack_entered_mtime[$env_file]= # _autoenv_stack_entered_mtime[$env_file]=
} }
# Is the given entry already in the stack? # Is the given entry already in the stack?