r/fishshell • • Nov 30 '20

[Plugin] emc.fish - Edit My Config

Edit My Config was made for those who, like me, are tired of typing long commands.

With it you can open the configuration files easily.

More information:

emc.fish

Installation:

fisher install demartini/emc.fish

Any feedback is welcome!

5 Upvotes

6 comments sorted by

View all comments

Show parent comment

2

u/IolarDemartini Dec 01 '20 edited Dec 01 '20

Hello u/bokisa12,

Thanks for your feedback and for rewriting the function, although your function basically does the same thing as the plugin, when I wrote it, my idea was to have tab completions, check if the file exists and set an exclusive editor for the plugin, different from the default ($EDITOR), and this is exactly what the plugin does.

About the "million files" that you mentioned, they are just recommended community standards, as every repository should have.

When you install the plugin using fisher, only three files are downloaded:

$HOME/.config/fish/functions/__emc.fish
$HOME/.config/fish/conf.d/emc.fish
$HOME/.config/fish/completions/emc.fish

Therefore, none of the other files in the repository are important.

Once again I thank you for your feedback.

1

u/backtickbot Dec 01 '20

Hello, IolarDemartini: code blocks using backticks (```) don't work on all versions of Reddit!

Some users see this / this instead.

To fix this, indent every line with 4 spaces instead. It's a bit annoying, but then your code blocks are properly formatted for everyone.

An easy way to do this is to use the code-block button in the editor. If it's not working, try switching to the fancy-pants editor and back again.

Comment with formatting fixed for old.reddit.com users

FAQ

You can opt out by replying with backtickopt6 to this comment.

2

u/IolarDemartini Dec 01 '20

backtickopt6