Skip to content

Instantly share code, notes, and snippets.

@oktomus
Last active November 11, 2025 13:00
Show Gist options
  • Select an option

  • Save oktomus/e284923a7fce837615bb756a1060e5dc to your computer and use it in GitHub Desktop.

Select an option

Save oktomus/e284923a7fce837615bb756a1060e5dc to your computer and use it in GitHub Desktop.
Fork custom commands

With custom commands, you are one shortcut away to run commands thanks to the Quick Launch (Ctrl+P, ⌘+P).

Custom commands can be configured in File > Preferences > Custom commands, or by editing the json file custom-commands.json located in AppData/Local/Fork on Windows and ~/Library/Application Support/com.DanPristupov.Fork/custom-commands.json on MacOS.

Please share your own custom commands :)

How to use

Fork commands are posted as comments on this gist. Press CTRL+F to search for commands.

Then, copy-paste the commands you need in custom-commands.json.

Make sure to close Fork before editing the json file.

@bbilginn
Copy link

I was looking for some flavour then found this and wanted to share it here :)
fork-dev/TrackerWin#961

@JessyCatterwaul
Copy link

I don't understand what "UI" vs. "Action" is. Is there documentation?

I'm looking to trigger a script upon committing to a specific branch, to perform work locally instead of on a GitHub runner. Is this possible, or will it require triggering a command from the command-P menu?

@kroer
Copy link

kroer commented Nov 1, 2025

Is there a way to add a cutom command (with repository as target) as button on top panel next to the stash?

@chrift
Copy link

chrift commented Nov 11, 2025

I'm confused about these custom commands - does anyone know how to make it so I can use a keyboard shortcut to commit & push in one go?
I don't want it to automatically push all the time, so don't want to turn that option on, but sometimes the precommit takes an annoyingly long time so i just want the option for it to push automatically without me having to sit and watch it and then push.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment