Skip to content

Edit My Config is a plugin for Fish Shell.

License

Notifications You must be signed in to change notification settings

demartini/emc.fish

Repository files navigation


Logo

emc.fish

Edit My Config


gitter badge releases badge fish version badge license badge

Table of Contents

Why

Edit My Config is a plugin for Fish Shell, it was made for those like me who are tired of typing long commands.

Features

Want more features? Please open an issue or send a pull request!

Installation

Install with Fisher (recommended):

fisher install demartini/emc.fish

Usage

Call emc in your terminal with an option:

$ emc [<option>]

demo

Option Description
emc bash Opens the Bash config file.
emc fish Opens the Fish config file.
emc git Opens the Git config file.
emc gpg Opens the GPG config file.
emc gpga Opens the GPG agent config file.
emc nvim Opens the Neovim config file.
emc starship Opens the starship config file.
emc tmux Opens the tmux config file.
emc vim Opens the Vim config file.
emc zsh Opens the Zsh config file.
emc version Show the current version.
emc help Print help.

Customization

Using custom command

If you would like to customize emc default command, then set your own EMC_CMD universal variable. For example:

set --universal --export EMC_CMD ec

Alternatively, you can add the following line to your ~/.config/fish/config.fish:

set --export EMC_CMD ec

Using different editor

The default editor is VS Code, but if you would like to use a different one, then set your own EMC_EDITOR universal variable. For example:

set --universal --export EMC_EDITOR nvim

Alternatively, you can add the following line to your ~/.config/fish/config.fish:

set --export EMC_EDITOR nvim

Contributing

If you are interested in helping contribute, please take a look at our contribution guidelines and open an issue or pull request.

Changelog

See CHANGELOG for a human-readable history of changes.

License

Distributed under the MIT License. See LICENSE for more information.