Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/morzhanov/gsync
gsync is a tool to sync repos on different machines
https://github.com/morzhanov/gsync
Last synced: 5 days ago
JSON representation
gsync is a tool to sync repos on different machines
- Host: GitHub
- URL: https://github.com/morzhanov/gsync
- Owner: morzhanov
- Created: 2024-04-23T15:11:58.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-04-23T16:03:03.000Z (9 months ago)
- Last Synced: 2024-04-24T18:26:25.962Z (8 months ago)
- Language: Go
- Size: 1.23 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gsync
gsync is a tool to sync repos on different machines
## Building and adding to PATH (fish)
1. **Compile your Go script into a binary**:
Compile your script into a binary by running:
```bash
go build .
```Or
```bash
make build
```2. **Move the binary to a directory in your PATH**:
Create a directory for your custom binaries. You can create a `bin` directory in your home directory:
```bash
mkdir ~/bin
```Move the `gacli` binary to this directory:
```bash
mv gsync ~/bin
```3. **Add the directory to your PATH in Fish shell**:
Open your Fish shell configuration file `~/.config/fish/config.fish`:
```bash
nano ~/.config/fish/config.fish
```Add the following line to this file to include the `bin` directory in your PATH:
```fish
set -gx PATH $HOME/bin $PATH
```Save the changes to the configuration file.
4. **Reload Fish configuration**:
After saving the changes, reload your Fish configuration to apply the changes:
```bash
source ~/.config/fish/config.fish
```5. **Test your setup**:
You should now be able to run `gsync` from anywhere in your terminal, and it should execute your `gsync` script with the specified task name.