{"id":19839437,"url":"https://github.com/scientifichackers/iterm-pyenv","last_synced_at":"2025-07-24T00:06:21.691Z","repository":{"id":133162457,"uuid":"233639551","full_name":"scientifichackers/iterm-pyenv","owner":"scientifichackers","description":"Always be aware of the current python environment in iTerm's status bar","archived":false,"fork":false,"pushed_at":"2020-01-13T16:39:52.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-28T22:20:41.372Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/scientifichackers.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":"2020-01-13T16:22:52.000Z","updated_at":"2020-01-13T16:39:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"b5579b75-abe2-4850-a4a1-5295b4d0aef2","html_url":"https://github.com/scientifichackers/iterm-pyenv","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/scientifichackers/iterm-pyenv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scientifichackers%2Fiterm-pyenv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scientifichackers%2Fiterm-pyenv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scientifichackers%2Fiterm-pyenv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scientifichackers%2Fiterm-pyenv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scientifichackers","download_url":"https://codeload.github.com/scientifichackers/iterm-pyenv/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scientifichackers%2Fiterm-pyenv/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266770711,"owners_count":23981611,"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":[],"created_at":"2024-11-12T12:22:25.855Z","updated_at":"2025-07-24T00:06:21.667Z","avatar_url":"https://github.com/scientifichackers.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# iTerm-pyenv\n\nShows the current python environment name in iTerm's status bar, saving precious space in the shell prompt area.\n\n\u003cimg width=\"416\" alt=\"image\" src=\"https://user-images.githubusercontent.com/19492893/72273870-263cef80-3651-11ea-91ad-8ea3a9286927.png\"\u003e\n\n## Installation\n\n1. Copy [`pyenv.py`](./pyenv.py) to the iTerm Scripts directory.\n\n```bash\nmkdir -p ~/Library/Application\\ Support/iTerm2/Scripts/AutoLaunch\ncp pyenv.py ~/Library/Application\\ Support/iTerm2/Scripts/AutoLaunch\n```\n\n2. Add the following lines to `fish_prompt`\n\n```bash\nnano ~/.config/fish/functions/fish_prompt.fish\n```\n\n```fish\nfunction fish_prompt\n    # set python env for iTerm\n    set py (pyenv version-name)\n    if set -q VIRTUAL_ENV\n        set py (basename $VIRTUAL_ENV)\n    end\n    iterm2_set_user_var py $py\n    ##\n\n\t\t....    \nend\n```\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscientifichackers%2Fiterm-pyenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscientifichackers%2Fiterm-pyenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscientifichackers%2Fiterm-pyenv/lists"}