{"id":18136250,"url":"https://github.com/purarue/shortcuts","last_synced_at":"2026-04-27T20:33:18.820Z","repository":{"id":94610589,"uuid":"228149492","full_name":"purarue/shortcuts","owner":"purarue","description":"creates arbitrary shell scripts from a configuration file; shortcuts","archived":false,"fork":false,"pushed_at":"2026-01-23T22:35:10.000Z","size":64,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-24T11:10:34.252Z","etag":null,"topics":["cli","shell","shell-scripting"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/purarue.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-12-15T08:00:39.000Z","updated_at":"2026-01-23T22:35:06.000Z","dependencies_parsed_at":"2023-09-28T09:56:57.635Z","dependency_job_id":"95bed24b-1512-4651-b06b-a450598bc124","html_url":"https://github.com/purarue/shortcuts","commit_stats":null,"previous_names":["seanbreckenridge/shortcuts"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/purarue/shortcuts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purarue%2Fshortcuts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purarue%2Fshortcuts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purarue%2Fshortcuts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purarue%2Fshortcuts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/purarue","download_url":"https://codeload.github.com/purarue/shortcuts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purarue%2Fshortcuts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32354567,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"ssl_error","status_checked_at":"2026-04-27T20:07:00.910Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","shell","shell-scripting"],"created_at":"2024-11-01T14:41:24.699Z","updated_at":"2026-04-27T20:33:18.813Z","avatar_url":"https://github.com/purarue.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# shortcuts\n\nCreates arbitrary shell scripts from a configuration file; shortcuts\n\nThe scripts are described as a [`toml`](https://github.com/toml-lang/toml) file, see [`sample-config.toml`](./sample-config.toml) for an example. You can specify the interpreter, and any links (just copies of the script) you'd want to create, and the command itself. Running `shortcuts create` creates individual shell scripts at `~/.shortcuts`.\n\nA similar functionality could be created with aliases, but those aren't on your \\$PATH; aren't visible to other scripts or accessible by system utilities like [`rofi`](https://github.com/davatorium/rofi) (the major inspiration for writing this). You should add the shortcut directory to your path, by adding `export PATH=$PATH:$HOME/.shortcuts` to your shell profile. If you want to use the scripts generated with system utilities, I'd recommend setting your path in `~/.profile` in a `#!/bin/sh` script, and then running `source ~/.profile` in your corresponding `bash`/`zsh` startup files.\n\nThis allows me to create/change short/one liner shell scripts in one place, instead of creating/deleting/linking/copying files around in some bin directory manually.\n\nFor a more extensive example, see [my `shortcuts.toml` file](https://purarue.xyz/d/shortcuts.toml?redirect)\n\nIf you edit this in vim, you can put the following line in your configuration, so that `shortcuts create` runs whenever you save the file:\n\n```vim\nautocmd BufWritePost shortcuts.toml !shortcuts create\n```\n\nor in neovim with lua:\n\n```lua\nvim.api.nvim_create_autocmd(\"BufWritePost\", {\n    command = \"!shortcuts create\",\n    group = vim.api.nvim_create_augroup(\"shortcuts\", { clear = true }),\n    pattern = { \"shortcuts.toml\" },\n    desc = \"create shortcuts script when I save config file\",\n})\n```\n\n### Install\n\nRequires python 3.10+\n\n`python3 -m pip install git+https://github.com/purarue/shortcuts`\n\nShould be accessible as `shortcuts` or `python3 -m shortcuts`\n\n### Usage\n\n```\nUsage: shortcuts create [OPTIONS]\n\n  Create the shell scripts!\n\nOptions:\n  --debug / --quiet     Log shortcut files being created\n  --conf PATH           specify a configuration file\n  --shortcuts-dir PATH  specify a shortcuts directory\n  --help                Show this message and exit.\n```\n\nYou can also set the environment variables `SHORTCUTS_CONFIG` and `SHORTCUTS_DIR`, instead of passing `--conf` and `--shortcuts-dir`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurarue%2Fshortcuts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpurarue%2Fshortcuts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurarue%2Fshortcuts/lists"}