Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: make var assignment safer #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion conf.d/autoenvstack.fish
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ function _autoenvstack_deactivate_env -a env_dir
set -l old_var_name $old_prefix$env_hash$var_name
# The tricky part here is not to remove currently active var,
# but to replace it with new value. Otherwise the export flag is lost.
set $var_name $$old_var_name
set -g $var_name $$old_var_name
# We're about to leave the environment, have to clean up the vars from
# the namespace of environment we're leaving
set -e $old_var_name
Expand Down