{"id":15639262,"url":"https://github.com/gableroux/iterm2-macos-dynamic-profile","last_synced_at":"2025-08-18T17:06:32.517Z","repository":{"id":145782409,"uuid":"143195487","full_name":"GabLeRoux/iterm2-macos-dynamic-profile","owner":"GabLeRoux","description":"🍎Fix iterm2 macos keys","archived":false,"fork":false,"pushed_at":"2020-01-31T20:00:12.000Z","size":632,"stargazers_count":95,"open_issues_count":0,"forks_count":11,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-30T07:06:09.230Z","etag":null,"topics":["dynamic-profile","hacktoberfest","iterm2","keyboard","macos"],"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/GabLeRoux.png","metadata":{"files":{"readme":"ReadMe.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2018-08-01T18:48:41.000Z","updated_at":"2025-03-12T06:31:34.000Z","dependencies_parsed_at":"2023-04-24T17:53:54.241Z","dependency_job_id":null,"html_url":"https://github.com/GabLeRoux/iterm2-macos-dynamic-profile","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/GabLeRoux/iterm2-macos-dynamic-profile","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GabLeRoux%2Fiterm2-macos-dynamic-profile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GabLeRoux%2Fiterm2-macos-dynamic-profile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GabLeRoux%2Fiterm2-macos-dynamic-profile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GabLeRoux%2Fiterm2-macos-dynamic-profile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GabLeRoux","download_url":"https://codeload.github.com/GabLeRoux/iterm2-macos-dynamic-profile/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GabLeRoux%2Fiterm2-macos-dynamic-profile/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271027687,"owners_count":24687082,"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-08-18T02:00:08.743Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":["dynamic-profile","hacktoberfest","iterm2","keyboard","macos"],"created_at":"2024-10-03T11:25:11.651Z","updated_at":"2025-08-18T17:06:32.471Z","avatar_url":"https://github.com/GabLeRoux.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fix iterm2 MacOS keys\n\n[![Build Status](https://travis-ci.com/GabLeRoux/iterm2-macos-dynamic-profile.svg?branch=master)](https://travis-ci.com/GabLeRoux/iterm2-macos-dynamic-profile)\n\niTerm2 has terrible defaults concerning `option + arrow`, `cmd + arrow` + `backspace` or `delete`. Here's a fixed _dynamic profile_ to fix that.\n\nRefer to [iTerm 2: How to set keyboard shortcuts to jump to beginning/end of line? Answer](https://stackoverflow.com/a/29403520/1092815).\n\nI followed instructions, took the first suggestion each time and generated this iTerm2 profile.\n\n## How to import dynamic profile\n\n```bash\ngit clone https://github.com/GabLeRoux/iterm2-macos-dynamic-profile.git\ncd iterm2-macos-dynamic-profile\n\n# copy the json profile to dynamic profiles folder\ncp ./fix-iterm2-keys-profile.json ~/Library/Application\\ Support/iTerm2/DynamicProfiles\n\n# or create a symlink for easier updates\nln -s $(pwd)/fix-iterm2-keys-profile.json ~/Library/Application\\ Support/iTerm2/DynamicProfiles/\n```\n\n* Open iTerm2 Preferences -\u003e Profiles\n* Select the new dynamic profile from the list\n* Click `Other Actions` -\u003e `Bulk Copy from Selected Profile...`\n* Check `Keys` checkbox\n* Select your profile\n* Hit Copy button\n* Enjoy a much better life with your keyboard\n\n![Bulk Copy from Selected Profile...](./doc/bulk-copy-example.png)\n\n![Copy Keys to your profile](./doc/copy-keys-to-new-profile.png)\n\n## ZSH bindkey fix + redo\n\nAs explained in [iTerm 2: How to set keyboard shortcuts to jump to beginning/end of line? Answer](https://stackoverflow.com/a/29403520/1092815):\n\nSee [`./fix_zsh_keys.sh`](./fix_zsh_keys.sh)\n\n```bash\n# Copy fixed keys to your dotfiles\nmkdir ~/dotfiles/\ncp ./fix_zsh_keys.sh ~/dotfiles/\n\n# Add entry to your ~/.zshrc\necho 'source ~/dotfiles/fix_zsh_keys.sh' \u003e\u003e ~/.zshrc\n\n# Reload your .zshrc for changes to take effect\nsource ~/.zshrc\n```\n\n## Related documentation\n\nSee [iterm2 dynamic profiles documentation](https://www.iterm2.com/documentation-dynamic-profiles.html) for more details.\n\n## License\n\n[MIT](LICENSE.md) © [Gabriel Le Breton](https://gableroux.com)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgableroux%2Fiterm2-macos-dynamic-profile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgableroux%2Fiterm2-macos-dynamic-profile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgableroux%2Fiterm2-macos-dynamic-profile/lists"}