-
Notifications
You must be signed in to change notification settings - Fork 14
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
Changed fisher_data path and rm
command
#37
Conversation
rm
command
We should probably use XDG variables like fisher. 🤔 Will look at this when I next touch the project. Won't be tomorrow, sorry. Thanks for the ping! |
Change fisher install command
Good point, I made that change now. Please look when you have a chance. Thanks! |
README: Update install command to fisher 4
conf.d/sdk.fish
Outdated
@@ -44,7 +47,7 @@ function __fish_sdkman_run_in_bash | |||
env | grep -i -E \"^(`echo \${SDKMAN_CANDIDATES_CSV} | sed 's/,/|/g'`)_HOME\" >> $pipe; | |||
echo \"SDKMAN_OFFLINE_MODE=\${SDKMAN_OFFLINE_MODE}\" >> $pipe; | |||
echo \"SDKMAN_ENV=\${SDKMAN_ENV}\" >> $pipe" # it's not an environment variable! | |||
set bashDump (cat $pipe; rm $pipe) | |||
set bashDump (cat $pipe; command rm $pipe) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please explain which problem this change solves? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry I'm late with this! I have a separate command in my config that overrides rm
(calls trash instead), which breaks this call. If I use the command
to call rm
, it ensures that any overrides for that command are disregarded and it seems to get the same desired result.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@reitzig Any thoughts on this? I don't know of a more fish-y way to handle this particular command override 🤷
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it's feasible to look out for overrides of "basic" commands. :/ See also #23.
I would basically have to prefix all tool calls with command
-- and inevitably break some setup somewhere by doing that anyway.
FWIW, this is one reason why I hate writing shell scripts instead of "real" programs. In this instance, it can't be helped.
Changing
|
Sorry for the long silence.
Somehow, only a README change is left on this PR. Ah, got it. This is about the line that sets |
Moved fisher_data path from .config to .local/share to match latest fisher release
Changed
rm
tocommand rm
so it doesn't try to use a fishrm
function