{"id":13344219,"url":"https://github.com/zimfw/termtitle","last_synced_at":"2025-04-13T12:13:13.861Z","repository":{"id":53011209,"uuid":"225427638","full_name":"zimfw/termtitle","owner":"zimfw","description":"Sets a custom terminal title.","archived":false,"fork":false,"pushed_at":"2021-05-21T17:36:26.000Z","size":13,"stargazers_count":5,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-13T12:13:09.510Z","etag":null,"topics":["terminal","zim","zimfw","zsh","zsh-plugin","zsh-plugins"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/zimfw.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}},"created_at":"2019-12-02T17:08:17.000Z","updated_at":"2025-01-10T13:30:19.000Z","dependencies_parsed_at":"2022-09-08T06:40:59.187Z","dependency_job_id":null,"html_url":"https://github.com/zimfw/termtitle","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/zimfw%2Ftermtitle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zimfw%2Ftermtitle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zimfw%2Ftermtitle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zimfw%2Ftermtitle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zimfw","download_url":"https://codeload.github.com/zimfw/termtitle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248710447,"owners_count":21149191,"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":["terminal","zim","zimfw","zsh","zsh-plugin","zsh-plugins"],"created_at":"2024-07-29T19:32:53.258Z","updated_at":"2025-04-13T12:13:13.838Z","avatar_url":"https://github.com/zimfw.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"termtitle\n=========\n\nSets a custom terminal title.\n\nSettings\n--------\n\nThe default terminal title format is `%n@%m: %~`, which corresponds to\n`username@host: /path/to/working/directory`.\n\nYou can set your format using [prompt expansion escape sequences].\nThe following example sets the format to show the current directory name:\n\n    zstyle ':zim:termtitle' format '%1~'\n\nApple Terminal does not support the above, but a working directory escape\nsequence which is sent instead.\n\nBy default, the terminal title is updated before each prompt. The [hooks] to be used\ncan be customized with the zstyle below. For example, to have the title updated\nwhen a command is about to be executed and also before each prompt:\n\n    zstyle ':zim:termtitle' hooks 'preexec' 'precmd'\n\nA custom title format can be set for each separate hook using the following\nsyntax:\n\n    zstyle ':zim:termtitle:\u003chook\u003e' format '\u003cformat\u003e'\n\nFor example, to set the titles to show the command name typed by the user while the\ncommand is being executed and then the current directory name after the command\nended (i.e. before each prompt):\n\n    zstyle ':zim:termtitle' hooks 'preexec' 'precmd'\n    zstyle ':zim:termtitle:preexec' format '${${(A)=1}[1]}'\n    zstyle ':zim:termtitle:precmd'  format '%1~'\n\nAdd the zstyles to your `~/.zshrc`. Make sure you add them before where the\nmodule is initialized.\n\n[prompt expansion escape sequences]: http://zsh.sourceforge.net/Doc/Release/Prompt-Expansion.html#Simple-Prompt-Escapes\n[hooks]: http://zsh.sourceforge.net/Doc/Release/Functions.html#Hook-Functions\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzimfw%2Ftermtitle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzimfw%2Ftermtitle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzimfw%2Ftermtitle/lists"}