Skip to content

Instantly share code, notes, and snippets.

@simnalamburt
Last active February 8, 2016 09:26
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simnalamburt/9e96dfdbede5c7782dcb to your computer and use it in GitHub Desktop.
Save simnalamburt/9e96dfdbede5c7782dcb to your computer and use it in GitHub Desktop.
fplug draft

fplug Usecase Draft

디렉토리 구조.

유저는 ~/.config/fish/config.fish, ~/.fplug.yaml 두 파일만 관리하면 되며, fplug 자체는 ~/.fplug/ 밑에 모두 들어간다.

# Directory structure
▸ ~
    .config/fish/config.fish
    .fplug.yaml
  ▾ .fplug
      .cache
    ▸ pkgs

fplug를 설치할경우 ~/.config/fish/config.fish 맨 밑에 fplug 캐시를 로드하는 라인이 자동으로 들어간다.

# ~/.config/fish/config.fish

# Personal settings
set -gx GO_PATH "$HOME/.go"

# fplug
if [ -e ~/.fplug/.cache ]; source ~/.fplug/.cache; end 

fplug 설정은 YAML 포맷으로 선언적으로 관리된다.

# ~/.fplug.yaml
github:
- simnalamburt/cgitc
- simnalamburt/shellder     # 얘가 유일하게 fish_prompt.fish를 제공하기때문에, 얘가 fish_prompt.fish 와 심링크된다
- disjukr/right        # 얘가 유일하게 fish_right_prompt.fish를 제공하기때문에, 얘가 fish_right_prompt.fish 와 심링크된다
- kinoru/cstackc
git:
- https://github.com/simnalamburt/cgitc
- https://github.com/simnalamburt/fish-sensible

bitbucket: kinoru/cstackc
gitlab: simnalamburt/shellder
gist: 16b755de2b20a08e3534

지원할 소스 목록

  • git, github, gitlab, bitbucket, gist
References
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment