{"id":17920914,"url":"https://github.com/eth-p/fish-contextual-greeting","last_synced_at":"2025-07-23T21:03:38.718Z","repository":{"id":126317203,"uuid":"536245459","full_name":"eth-p/fish-contextual-greeting","owner":"eth-p","description":"Upgrade your fish_greeting experience with greetings that only show up under certain contexts.","archived":false,"fork":false,"pushed_at":"2022-09-27T21:09:41.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-03T11:13:03.074Z","etag":null,"topics":["fish-plugin","fish-shell","fisher","fisherman"],"latest_commit_sha":null,"homepage":"","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/eth-p.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,"publiccode":null,"codemeta":null}},"created_at":"2022-09-13T17:49:33.000Z","updated_at":"2022-09-13T23:46:53.000Z","dependencies_parsed_at":"2023-06-16T06:45:07.694Z","dependency_job_id":null,"html_url":"https://github.com/eth-p/fish-contextual-greeting","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/eth-p/fish-contextual-greeting","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eth-p%2Ffish-contextual-greeting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eth-p%2Ffish-contextual-greeting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eth-p%2Ffish-contextual-greeting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eth-p%2Ffish-contextual-greeting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eth-p","download_url":"https://codeload.github.com/eth-p/fish-contextual-greeting/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eth-p%2Ffish-contextual-greeting/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266747418,"owners_count":23978038,"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","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["fish-plugin","fish-shell","fisher","fisherman"],"created_at":"2024-10-28T20:29:37.225Z","updated_at":"2025-07-23T21:03:38.694Z","avatar_url":"https://github.com/eth-p.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Contextual Greetings for Fish Shell\n\nUpgrade your `fish_greeting` experience with greetings that only show up under certain contexts.\n\n\n\n## Install\n\nWith [fisher](https://github.com/jorgebucaran/fisher):\n\n```\nfisher add eth-p/fish-contextual-greeting\n```\n\n\n\n## Greetings\n\nCurrently, `fish-contextual-greeting` supports the following greeting contexts:\n\n\u003cdetails\u003e\u003csummary\u003e\u003ccode\u003egreeting_for_ssh\u003c/code\u003e: When connected through a SSH client.\u003c/summary\u003e\n\n```fish\nfunction greeting_for_ssh\n\tif contextual_greeting --is-toplevel  # only show if it's not a nested shell\n\t\techo \"Hello, $SSH_CLIENT!\"\n\tend\nend\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003e\u003ccode\u003egreeting_for_ide\u003c/code\u003e: When using an IDE terminal.\u003c/summary\u003e\n\n```fish\nfunction greeting_for_ide\n\techo \"You appear to be using an IDE terminal.\"\nend\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003e\u003ccode\u003egreeting_for_tmux\u003c/code\u003e: When inside a tmux pane.\u003c/summary\u003e\n\n```fish\nfunction greeting_for_tmux\n\ttmux list-windows\nend\n```\n\n\u003c/details\u003e\n\nThe user's `fish_greeting` will also be called after the other contextual greetings..\n\n\n\n## Configuration\n\nGreetings can be configured with variables:\n\n|Variable|Default|Description|\n|:--|:--|:--|\n|`contextualgreeting_order`|`'ssh' 'ide' 'tmux' 'fish'`|The order in which prefixes are printed.|\n|`contextualgreeting_prefix`|`'greeting_for_'`|The prefix for greeting functions.|\n|`contextualgreeting_redraw`|`false`|Redraw the greeting if the terminal is resized.|\n\n\n## Advanced Features\n\n### Event Listener\n\nYou can add an event listener for the `contextual_greeting` event to optionally disable greetings under certain circumstances:\n\n```fish\nfunction disable_ide_message_for_tmux --on-event contextual_greeting\n\tset -l current_context $argv[1]\n\tif contains \"tmux\" (contextual_greeting contexts) \u0026\u0026 test $current_context = \"ide\" \n\t\tcontextual_greeting skip\n\tend\nend\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feth-p%2Ffish-contextual-greeting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feth-p%2Ffish-contextual-greeting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feth-p%2Ffish-contextual-greeting/lists"}