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

Allow erasing multiple variables, abbrs, etc. #7377

Closed
IlanCosman opened this issue Oct 3, 2020 · 1 comment
Closed

Allow erasing multiple variables, abbrs, etc. #7377

IlanCosman opened this issue Oct 3, 2020 · 1 comment

Comments

@IlanCosman
Copy link
Contributor

IlanCosman commented Oct 3, 2020

The functions --erase command accepts multiple arguments, erasing all of them. set and abbr should do the same. I've not infrequently found myself using the

for var in $list_of_vars
    set -e $var
end

idiom. set -e $list_of_vars would be much more convenient. Similarly with abbr, though in truth I've never needed to erase multiple abbrs at once.

Either the functions --erase command should not accept multiple arguments, or set --erase and abbr --erase should (obviously I believe the latter).

@ridiculousfish
Copy link
Member

Seems reasonable!

faho added a commit that referenced this issue Oct 4, 2020
@faho faho closed this as completed in 2ab4c10 Oct 4, 2020
@zanchey zanchey modified the milestones: fish-future, fish 3.2.0 Oct 4, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants