모든 도구의 구성 파일을 찾고 편집하는 도구

2984 단어 toolconfig
나는 물고기 구성 파일을 편집하고 싶을 때 항상 "fish config"또는 "fish fishrc"와 같이 Google에 검색합니다.

하지만 그것을 해결하기 위해 도구를 만들었습니다.

anyconf



https://github.com/inabajunmr/anyconf

행동





권장 시스템 요구 사항




$ go version
go version go1.13.8 darwin/amd64
$ vim --version
VIM - Vi IMproved 8.1 (2018 May 18, compiled Jun  5 2020 21:30:37)
macOS version
$ sw_vers
ProductName:    Mac OS X
ProductVersion: 10.15.7
BuildVersion:   19H114


설치




go get github.com/inabajunmr/anyconf


용법


anyconf 명령은 다음 예와 같이 지원되는 도구를 보여줍니다.

$ anyconf
? What's next key?  [Use arrows to move, enter to select, type to filter]
> fish
  screen
  git
  aws
  bash
  curl
  npm


또한 도구를 입력하고 필터링할 수 있습니다.

$ anyconf
? What's next key? g  [Use arrows to move, enter to select, type to filter]
> git
  wget


선택 후 구성 파일이 vim에 의해 열립니다. (vim이 기본값이며 anyconf configuration을 통해 변경할 수 있습니다.)

Pull Request를 통한 새로운 도구 지원



매핑 도구 및 구성 파일은 다음 파일에서 관리합니다.

https://github.com/inabajunmr/anyconf/blob/main/static/configs.txt

anyconf ~/.anyconf/configs.txt
aws/config ~/.aws/config
aws/credentials ~/.aws/credentials
bash/bash_profile ~/.bash_profile
bash/bashrc ~/.bashrc
+NEWTOOL ~/.newtool.conf


이렇게 NEWTOOL을 적용하고 싶다면 pull request를 보낼 수 있습니다.
병합 후 anyconf는 NEWTOOL을 지원합니다.

로컬 구성을 통해 새로운 도구 지원



anyconf가 관리하고.anyconf/configs.txt 구성을 통해 도구를 지원할 수 있습니다.

다음 예제를 설정에 넣으면 anyconf에서 NEWTOOL을 사용할 수 있습니다.

NEWTOOL ~/.newtool.conf


구성 파일은 anyconf를 통해 열 수 있습니다.

결론



모든 도구 구성을 찾아 편집하도록 anyconf 만들었습니다.

하지만 아직 제가 사용하는 몇 가지 도구만 지원하기 때문에 다른 도구에 대한 Pull Request를 받으면 기쁠 것 같습니다. 고맙습니다.

좋은 웹페이지 즐겨찾기