mirror of
https://github.com/Tarrasch/zsh-autoenv.git
synced 2024-11-22 23:40:58 +02:00
Dirty fix for #14
This commit is contained in:
parent
e8e7ca7e7d
commit
4e90cdc875
@ -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?
|
||||||
|
Loading…
Reference in New Issue
Block a user