{"id":18687750,"url":"https://github.com/marcos-venicius/command-shrink","last_synced_at":"2026-04-11T07:01:35.045Z","repository":{"id":168721744,"uuid":"616541763","full_name":"marcos-venicius/command-shrink","owner":"marcos-venicius","description":"A cli to create \"shrinks\" to large commands, multi terminal: zsh and bash","archived":false,"fork":false,"pushed_at":"2023-11-13T19:12:23.000Z","size":53,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-19T14:57:57.134Z","etag":null,"topics":["bash","cli","command","linux","tools","unix","zsh"],"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/marcos-venicius.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}},"created_at":"2023-03-20T15:33:55.000Z","updated_at":"2023-05-23T17:08:52.000Z","dependencies_parsed_at":"2023-11-13T19:57:16.098Z","dependency_job_id":"601104e2-0eca-4f51-9c58-c5935eb124af","html_url":"https://github.com/marcos-venicius/command-shrink","commit_stats":null,"previous_names":["marcos-venicius/command-shrink"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/marcos-venicius/command-shrink","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcos-venicius%2Fcommand-shrink","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcos-venicius%2Fcommand-shrink/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcos-venicius%2Fcommand-shrink/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcos-venicius%2Fcommand-shrink/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcos-venicius","download_url":"https://codeload.github.com/marcos-venicius/command-shrink/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcos-venicius%2Fcommand-shrink/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31671630,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T17:19:37.612Z","status":"online","status_checked_at":"2026-04-11T02:00:05.776Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["bash","cli","command","linux","tools","unix","zsh"],"created_at":"2024-11-07T10:34:00.545Z","updated_at":"2026-04-11T07:01:35.016Z","avatar_url":"https://github.com/marcos-venicius.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Command Shrink\n\n![shrink-cli-example](https://github.com/marcos-venicius/command-shrink/assets/94018427/045f3b83-fcb3-4444-b35b-9189893f0b61)\n\nmany times we have to use large commands.\n\nThis is ok, but when this usage is often, it could be anoying.\n\nTo solve this problem i'm writing this cli.\n\n## How it works\n\nbasically you can create a \"shrink command\" to any command that you have on linux\n\nhow can i create a new shrink?\n\n```bash\nshrink -a \u003cshrink_name\u003e \u003ccommand\u003e\n```\n\nthis is the basic syntax.\n\nfor example, if you want to make the command `all` to list all files in current directory instead of `ls -la`, you could:\n\n```bash\nshrink -a all \"ls -la\"\n```\n\nand done.\n\nwhen you execute `all` in your terminal, the command `ls -la` will be executed.\n\n## Benefits\n\nAll right. you could be thinking: \"Just use the bash alias\".\n\nBut, is not that simple.\n\nif you are working on a project and needs to execute a large command to up a docker container for example.\n\nhow anoying is to open the bash, create an alias manually, go back to the terminal, source the current session.\nif the command is wrong? do it again!\nwant to remove? do it again!\nwant to update? do it again!\n\nwith the cli you will be able to do this operations by a single command.\n\n## Installing\n\nBash:\n\n```bash\ncd ~ \u0026\u0026 echo \"export SHRINK_TERMINAL=bash\" \u003e\u003e ~/.bashrc \u0026\u0026 mkdir .shrink \u0026\u0026 cd .shrink \u0026\u0026 git clone https://github.com/marcos-venicius/command-shrink.git sk \u0026\u0026 echo 'sk() { ~/.shrink/sk/main.py \"$@\"; exec bash; }' \u003e\u003e ~/.bashrc \u0026\u0026 cd ~ \u0026\u0026 exec bash\n```\n\nZsh:\n\n```bash\ncd ~ \u0026\u0026 echo \"export SHRINK_TERMINAL=zsh\" \u003e\u003e ~/.zshrc \u0026\u0026 mkdir .shrink \u0026\u0026 cd .shrink \u0026\u0026 git clone https://github.com/marcos-venicius/command-shrink.git sk \u0026\u0026 echo 'sk() { ~/.shrink/sk/main.py \"$@\"; exec zsh; }' \u003e\u003e ~/.zshrc \u0026\u0026 cd ~ \u0026\u0026 exec zsh\n```\n\n# Help\n\n```console\nusage: Shrink [-h] [--add] [--list] [--remove] [alias] [command]\n\nShrink your large commands\n\npositional arguments:\n  alias         Alias name (numbers, letters, underlines)\n  command       Command to shrink\n\noptions:\n  -h, --help    show this help message and exit\n  --add, -a     Add a new alias\n  --list, -l    List all aliases\n  --remove, -r  Remove an alias\n\nsk cm 'git commit -m'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcos-venicius%2Fcommand-shrink","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcos-venicius%2Fcommand-shrink","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcos-venicius%2Fcommand-shrink/lists"}