{"id":14069489,"url":"https://github.com/willghatch/zsh-snippets","last_synced_at":"2025-05-01T18:30:44.274Z","repository":{"id":23378020,"uuid":"26739494","full_name":"willghatch/zsh-snippets","owner":"willghatch","description":"Snippet expansion for zsh","archived":false,"fork":false,"pushed_at":"2018-03-09T21:18:35.000Z","size":128,"stargazers_count":37,"open_issues_count":3,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-06T16:49:11.439Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/willghatch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-11-17T04:08:34.000Z","updated_at":"2024-09-18T03:40:01.000Z","dependencies_parsed_at":"2022-08-21T23:31:15.898Z","dependency_job_id":null,"html_url":"https://github.com/willghatch/zsh-snippets","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willghatch%2Fzsh-snippets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willghatch%2Fzsh-snippets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willghatch%2Fzsh-snippets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willghatch%2Fzsh-snippets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willghatch","download_url":"https://codeload.github.com/willghatch/zsh-snippets/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251924609,"owners_count":21666000,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-08-13T07:06:59.624Z","updated_at":"2025-05-01T18:30:43.992Z","avatar_url":"https://github.com/willghatch.png","language":"Shell","funding_links":[],"categories":["Plugins","Shell"],"sub_categories":["ZSH on Windows","Zinit (née zplugin)"],"readme":"Install\n-------\n\nFor the lazy:\n\n    git clone https://github.com/willghatch/zsh-snippets.git\n    echo \"source zsh-snippets/snippets.plugin.zsh\" \u003e\u003e ~/.zshrc\n\nBetter, use [zgen](https://github.com/tarjoilija/zgen) or antigen.  Here is how to do it with zgen:\n\n    zgen load willghatch/zsh-snippets\n\n\nThe Magic\n---------\n\nExpand text anywhere on the command line, like aliases.\n\n    ps aux tg! # ! represents cursor position\n    # M-x snippet-expand, or hopefully you bind it to a key\n    ps aux | grep! # ! is your new cursor position\n\nAdd snippets\n\n    snippet-add d \"/my/long/directory/or/something like that\"\n    # then you can expand d to... that long thing\n\nList snippets\n\n    help-list-snippets # pulls up help in a your pager\n    # or\n    # M-x run-help-list-snippets -- does the same thing\n\nThis snippet stuff has been floating around in a few different forms and names.  I think the first version was from http://zshwiki.org/home/examples/zleiab.  My version adds some (in my opinion) handy interface functions, and packages it in a plugin for easy use with antigen.\n\nLicense\n-------\n\nI've seen parts of this code all over the web, so I assume it's fair game.  All my contributions I dedicate to the public domain.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillghatch%2Fzsh-snippets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwillghatch%2Fzsh-snippets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillghatch%2Fzsh-snippets/lists"}