Repository navigation
funced : changed 'rm' to 'command rm' - #7826
Merged
Merged
Conversation
if rm is aliased to 'rm -i' then rm will ask to delete the cache file after funced edited the file which is anoying
Member
|
Yeah, sure. Note that you don't typically want to alias things with the same name. It's bad form and quite likely to cause problems like this (especially since fish doesn't distinguish between aliases and functions, and loads all configuration even in non-interactive shells!). (honestly, just use an abbreviation - I have But in this case it's simple enough that we can just take the enhancement. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
If
rmis aliased torm -i(ask before deleting) thenrmwill always ask to delete the cache file after funced edited the file, which is anoying. With this change, it won't be asking anymore. (This file is meant to be deleted at the end offuncedso it's not a problem at all)Tests
I made the exact same modifications in
funcedin my session and it worked perfectly.