diff options
Diffstat (limited to 'dot/bashrc')
-rw-r--r-- | dot/bashrc | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -40,6 +40,7 @@ memoize_retval() | |||
40 | 40 | ||
41 | add_stack_binpath() | 41 | add_stack_binpath() |
42 | { | 42 | { |
43 | [ "$STACK_PATH_HAS_BEEN_SET" ] && return | ||
43 | local result="$( stack path 2>&1 | while read k v | 44 | local result="$( stack path 2>&1 | while read k v |
44 | do | 45 | do |
45 | case "$k" in | 46 | case "$k" in |
@@ -51,7 +52,7 @@ memoize_retval() | |||
51 | esac | 52 | esac |
52 | done | 53 | done |
53 | )" | 54 | )" |
54 | [ "$result" ] && eval "$result" | 55 | [ "$result" ] && eval "$result" && export STACK_PATH_HAS_BEEN_SET=y |
55 | } | 56 | } |
56 | 57 | ||
57 | ### bash settings, general environment ### | 58 | ### bash settings, general environment ### |