{"id":13407410,"url":"https://github.com/rupa/z","last_synced_at":"2025-05-11T11:02:03.701Z","repository":{"id":600692,"uuid":"236571","full_name":"rupa/z","owner":"rupa","description":"z - jump around","archived":false,"fork":false,"pushed_at":"2024-06-19T08:00:48.000Z","size":168,"stargazers_count":16634,"open_issues_count":103,"forks_count":1178,"subscribers_count":166,"default_branch":"master","last_synced_at":"2025-05-06T17:37:46.702Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rupa.png","metadata":{"files":{"readme":"README","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":"2009-06-25T22:31:23.000Z","updated_at":"2025-05-05T23:35:01.000Z","dependencies_parsed_at":"2024-09-21T08:02:08.798Z","dependency_job_id":null,"html_url":"https://github.com/rupa/z","commit_stats":{"total_commits":189,"total_committers":28,"mean_commits":6.75,"dds":"0.20105820105820105","last_synced_commit":"d37a763a6a30e1b32766fecc3b8ffd6127f8a0fd"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rupa%2Fz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rupa%2Fz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rupa%2Fz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rupa%2Fz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rupa","download_url":"https://codeload.github.com/rupa/z/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252739767,"owners_count":21796977,"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-07-30T20:00:39.635Z","updated_at":"2025-05-11T11:02:03.678Z","avatar_url":"https://github.com/rupa.png","language":"Shell","readme":"Z(1)                             User Commands                            Z(1)\n\n\n\nNAME\n       z - jump around\n\nSYNOPSIS\n       z [-chlrtx] [regex1 regex2 ... regexn]\n\nAVAILABILITY\n       bash, zsh\n\nDESCRIPTION\n       Tracks your most used directories, based on 'frecency'.\n\n       After  a  short  learning  phase, z will take you to the most 'frecent'\n       directory that matches ALL of the regexes given on the command line, in\n       order.\n\n       For example, z foo bar would match /foo/bar but not /bar/foo.\n\nOPTIONS\n       -c     restrict matches to subdirectories of the current directory\n\n       -e     echo the best match, don't cd\n\n       -h     show a brief help message\n\n       -l     list only\n\n       -r     match by rank only\n\n       -t     match by recent access only\n\n       -x     remove the current directory from the datafile\n\nEXAMPLES\n       z foo         cd to most frecent dir matching foo\n\n       z foo bar     cd to most frecent dir matching foo, then bar\n\n       z -r foo      cd to highest ranked dir matching foo\n\n       z -t foo      cd to most recently accessed dir matching foo\n\n       z -l foo      list all dirs matching foo (by frecency)\n\nNOTES\n   Installation:\n       Put something like this in your $HOME/.bashrc or $HOME/.zshrc:\n\n              . /path/to/z.sh\n\n       cd around for a while to build up the db.\n\n       PROFIT!!\n\n       Optionally:\n              Set $_Z_CMD to change the command name (default z).\n              Set $_Z_DATA to change the datafile (default $HOME/.z).\n              Set  $_Z_MAX_SCORE  lower  to  age  entries  out faster (default\n              9000).\n              Set $_Z_NO_RESOLVE_SYMLINKS to prevent symlink resolution.\n              Set $_Z_NO_PROMPT_COMMAND to handle PROMPT_COMMAND/precmd  your-\n              self.\n              Set $_Z_EXCLUDE_DIRS to an array of directory trees to  exclude.\n              Set $_Z_OWNER to allow usage when in 'sudo -s' mode.\n              (These  settings  should  go  in  .bashrc/.zshrc before the line\n              added above.)\n              Install the provided man page z.1  somewhere  in  your  MANPATH,\n              like /usr/local/man/man1.\n\n   Aging:\n       The rank of directories maintained by z undergoes aging based on a sim-\n       ple formula. The rank of each entry is incremented  every  time  it  is\n       accessed.  When the sum of ranks is over 9000, all ranks are multiplied\n       by 0.99. Entries with a rank lower than 1 are forgotten.\n\n   Frecency:\n       Frecency is a portmanteau of 'recent' and 'frequency'. It is a weighted\n       rank  that depends on how often and how recently something occurred. As\n       far as I know, Mozilla came up with the term.\n\n       To z, a directory that has low ranking but has been  accessed  recently\n       will  quickly  have  higher rank than a directory accessed frequently a\n       long time ago.\n\n       Frecency is determined at runtime.\n\n   Common:\n       When multiple directories match all queries, and they all have a common\n       prefix, z will cd to the shortest matching directory, without regard to\n       priority.  This has been in effect, if  undocumented,  for  quite  some\n       time, but should probably be configurable or reconsidered.\n\n   Tab Completion:\n       z  supports tab completion. After any number of arguments, press TAB to\n       complete on directories that match each argument. Due to limitations of\n       the  completion  implementations,  only  the last argument will be com-\n       pleted in the shell.\n\n       Internally, z decides you've requested a completion if the  last  argu-\n       ment  passed  is  an  absolute  path to an existing directory. This may\n       cause unexpected behavior if the last argument to z begins with /.\n\nENVIRONMENT\n       A function _z() is defined.\n\n       The contents of the variable $_Z_CMD is aliased to _z 2\u003e\u00261. If not set,\n       $_Z_CMD defaults to z.\n\n       The  environment  variable $_Z_DATA can be used to control the datafile\n       location. If it is not defined, the location defaults to $HOME/.z.\n\n       The environment variable $_Z_NO_RESOLVE_SYMLINKS can be set to  prevent\n       resolving  of  symlinks.  If  it  is  not  set,  symbolic links will be\n       resolved when added to the datafile.\n\n       In bash, z appends a command to the PROMPT_COMMAND environment variable\n       to maintain its database. In zsh, z appends a function _z_precmd to the\n       precmd_functions array.\n\n       The environment variable $_Z_NO_PROMPT_COMMAND can be set if  you  want\n       to handle PROMPT_COMMAND or precmd yourself.\n\n       The  environment  variable  $_Z_EXCLUDE_DIRS  can be set to an array of\n       directory trees to exclude from tracking.  $HOME  is  always  excluded.\n       Directories must be full paths without trailing slashes.\n\n       The  environment  variable  $_Z_OWNER  can  be set to your username, to\n       allow usage of z when your sudo environment keeps $HOME set.\n\nFILES\n       Data is stored in $HOME/.z. This  can  be  overridden  by  setting  the\n       $_Z_DATA  environment variable. When initialized, z will raise an error\n       if this path is a directory, and not function correctly.\n\n       A man page (z.1) is provided.\n\nSEE ALSO\n       regex(7), pushd, popd, autojump, cdargs\n\n       Please file bugs at https://github.com/rupa/z/\n\n\n\nz                                January 2013                             Z(1)\n","funding_links":[],"categories":["Linux Tools","Shell","Uncategorized","Command-Line Productivity","Tools and Plugins","Files and Directories","Command Line","Terminal","Directory Navigation","others","开源工具","파워쉘을 사용하면서 사용하기 좋은 모듈들.","Programming Languages","Utilities","\u003ca name=\"cd\"\u003e\u003c/a\u003eDirectory changers (alternatives to cd)","Command Line Tools","Tools","\\*nix/\\*nux","ユーティリティ"],"sub_categories":["Uncategorized","Directory Navigation","Windows","Dependency Management","Zsh","OS X","命令行工具","사용방법","Shell","Productivity","Other","Terminal","生産性ツール"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frupa%2Fz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frupa%2Fz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frupa%2Fz/lists"}