Skip to content

Latest commit

 

History

History
15 lines (13 loc) · 1.03 KB

README.md

File metadata and controls

15 lines (13 loc) · 1.03 KB

This unit file allows you to automatically start gitforgefs as a systemd unit.

Setup

  1. Install gitforgefs
  2. Copy [email protected] into $HOME/.config/systemd/user. Create the folder if it does not exists.
mkdir -p $HOME/.config/systemd/user
curl -o $HOME/.config/systemd/user/[email protected] https://raw.githubusercontent.com/badjware/gitforgefs/dev/contrib/systemd/gitforgefs%40.service
  1. Reload systemd: systemctl --user daemon-reload

Usage

  1. Create your gitforgefs config file in $HOME/.config/gitforgefs eg: $HOME/.config/gitforgefs/gitlab.com.yaml. Make sure the config file name ends with .yaml and a mountpoint is configured in the file.
  2. Start your service with systemctl --user start gitforgefs@<name of your config>.service. eg: systemctl --user start [email protected]. Omit the .yaml extension.
  3. Enable your service to start on login with systemctl --user enable gitforgefs@<name of your config>.service. eg: systemctl --user enable [email protected]