{"id":13897814,"url":"https://github.com/kurkale6ka/zsh","last_synced_at":"2026-01-11T02:47:57.137Z","repository":{"id":27592523,"uuid":"31075690","full_name":"kurkale6ka/zsh","owner":"kurkale6ka","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-11T11:11:15.000Z","size":543,"stargazers_count":11,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-07T18:44:38.524Z","etag":null,"topics":["cd-bookmarks","command-line","fuzzy-cd","zsh"],"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/kurkale6ka.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2015-02-20T17:21:18.000Z","updated_at":"2023-10-05T07:39:48.000Z","dependencies_parsed_at":"2023-11-07T12:30:32.745Z","dependency_job_id":"0cd7212b-9981-4705-8acc-777c900b06c8","html_url":"https://github.com/kurkale6ka/zsh","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kurkale6ka%2Fzsh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kurkale6ka%2Fzsh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kurkale6ka%2Fzsh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kurkale6ka%2Fzsh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kurkale6ka","download_url":"https://codeload.github.com/kurkale6ka/zsh/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226274532,"owners_count":17598829,"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":["cd-bookmarks","command-line","fuzzy-cd","zsh"],"created_at":"2024-08-06T18:03:53.473Z","updated_at":"2024-11-25T04:30:16.525Z","avatar_url":"https://github.com/kurkale6ka.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# NB: this is deprecated\nUse [Fuzzy cd, using shell's history](https://github.com/kurkale6ka/scripts/blob/master/fuzzy_cd/README.md) instead\n\n# Fuzzy cd based on bookmarks\n\n_Every cd is bookmarked and assigned a weight so you can later on jump to it quickly_\n\n## All of the following is needed:\n\n1. **Install** [fzf](https://github.com/junegunn/fzf)\n\n2. **XDG setup**:\n\n   In `/etc/zsh/zshenv`, `/etc/zshenv` or `~/.zshenv`:\n   ```sh\n   # XDG configuration home\n   if [[ -z $XDG_CONFIG_HOME ]]\n   then\n      export XDG_CONFIG_HOME=$HOME/.config\n   fi\n\n   # XDG data home\n   if [[ -z $XDG_DATA_HOME ]]\n   then\n      export XDG_DATA_HOME=$HOME/.local/share\n   fi\n   ```\n\n3. **Bookmarks database**:\n\n   ```sh\n   mkdir -p $XDG_DATA_HOME/marks\n\n   sqlite3 $XDG_DATA_HOME/marks/marks.sqlite \u003c\u003c 'INIT'\n   CREATE TABLE marks (\n     dir VARCHAR(200) UNIQUE,\n     weight INTEGER\n   );\n\n   CREATE INDEX _dir ON marks (dir);\n   INIT\n   ```\n\n4. **Autoload functions** ([ZSH Functions](http://zsh.sourceforge.net/Doc/Release/Functions.html)):  \n     * [fuzzy cd](https://github.com/kurkale6ka/zsh/blob/master/autoload/fuzzy/c)\n     * [bookmarks update](https://github.com/kurkale6ka/zsh/blob/master/autoload/fuzzy/update_marks)\n     * [bookmarks cleanup](https://github.com/kurkale6ka/zsh/blob/master/autoload/fuzzy/ccleanup)\n\n5. **PWD hook function**: `chpwd_functions+=(update_marks)` in `~/.zshrc`\n\n## Usage:\n```\nc             # choose where to cd from all bookmarks\nc pattern ... # cd to a matching path\nc -s          # statistics\n\nccleanup\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkurkale6ka%2Fzsh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkurkale6ka%2Fzsh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkurkale6ka%2Fzsh/lists"}