Skip to content

Commit

Permalink
add snapcraft plugs to read gitconfig files from HOME, #588
Browse files Browse the repository at this point in the history
  • Loading branch information
o2sh committed Mar 3, 2022
1 parent dbf4ec2 commit d1eb649
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions snap/snapcraft.yaml
Expand Up @@ -20,15 +20,21 @@ parts:
snapcraftctl set-version $(git describe --abbrev=0 --tags)
plugs:
config-git:
system-gitconfig:
interface: system-files
read:
- /etc/gitconfig
- /etc/gitconfig
global-gitconfig:
interface: personal-files
read:
- $HOME/.gitconfig
- $HOME/.config/git/config

apps:
onefetch:
command: bin/onefetch
plugs:
- home
- removable-media
- config-git
- system-gitconfig
- global-gitconfig

0 comments on commit d1eb649

Please sign in to comment.