Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/inabajunmr/anyconf
You never need to google file path for any tools configuration.
https://github.com/inabajunmr/anyconf
Last synced: about 2 months ago
JSON representation
You never need to google file path for any tools configuration.
- Host: GitHub
- URL: https://github.com/inabajunmr/anyconf
- Owner: inabajunmr
- License: mit
- Created: 2021-03-15T13:13:00.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-11-19T06:47:08.000Z (10 months ago)
- Last Synced: 2024-06-19T11:37:34.917Z (3 months ago)
- Language: Go
- Homepage:
- Size: 2.94 MB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# anyconf
anyconf is a local configuration file finder.
## Install
```
go install github.com/inabajunmr/anyconf@latest
```## Usage
When you want to edit the config file about AWS.
```
anyconf aws
```### Example
![](./doc/anyconf.gif)
### Local extension
When you want to add a config path to only your local environment, you can use the local config file.
```
vim ~/.anyconf/configs.txt
```When you add a line to `~/.anyconf/configs.txt` like the following example, you can find yourtool on anyconf.
```
yourtool ~/yourtool/config
```You can find and edit it via anyconf.
### Editor Configuration
The default editor is Vim.
If you want to use vscode and you can launch it by `code` command, you can configure it on `~/.anyconf/configs.yml` like the following example.```
editor: code
```You can find and edit it via anyconf too.
## Development
### Prerequisite
anyconf use [statik](https://github.com/rakyll/statik) for the build process.
### Build
After editing static/configs.txt, the following command is needed.
```
statik -src static
```## Contribution
Please add a new config to [static/configs.txt](static/configs.txt).
When you want to add `~/.aws/config`, you can add a line like the following example.```diff
aws/credentials ~/.aws/credentials
+ aws/config ~/.aws/config
fish ~/.config/fish/config.fish
git/config ~/.gitconfig
```## License
[MIT](https://github.com/inabajunmr/anyconf/blob/main/LICENSE)
## Author
[inabajunmr](https://github.com/inabajunmr)