{"id":13459627,"url":"https://github.com/lifeparticle/Cosmic-Terminal","last_synced_at":"2025-03-24T18:30:54.734Z","repository":{"id":53930777,"uuid":"186592749","full_name":"lifeparticle/Cosmic-Terminal","owner":"lifeparticle","description":"Bash automation script to get  iTerm2, oh-my-zsh, Fig, material-design-colors, powerlevel9k and nerd-fonts on your Mac.","archived":false,"fork":false,"pushed_at":"2023-03-29T01:30:44.000Z","size":73,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-29T05:34:53.376Z","etag":null,"topics":["automation","bash","bash-script","fig","iterm2","macos","macosx","material-design-colors","nerd-fonts","oh-my-zsh","powerlevel9k","script","terminal"],"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/lifeparticle.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["lifeparticle"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2019-05-14T09:44:26.000Z","updated_at":"2024-07-07T16:57:12.000Z","dependencies_parsed_at":"2024-10-29T05:41:29.683Z","dependency_job_id":null,"html_url":"https://github.com/lifeparticle/Cosmic-Terminal","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/lifeparticle%2FCosmic-Terminal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lifeparticle%2FCosmic-Terminal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lifeparticle%2FCosmic-Terminal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lifeparticle%2FCosmic-Terminal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lifeparticle","download_url":"https://codeload.github.com/lifeparticle/Cosmic-Terminal/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245328113,"owners_count":20597363,"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":["automation","bash","bash-script","fig","iterm2","macos","macosx","material-design-colors","nerd-fonts","oh-my-zsh","powerlevel9k","script","terminal"],"created_at":"2024-07-31T10:00:23.498Z","updated_at":"2025-03-24T18:30:54.436Z","avatar_url":"https://github.com/lifeparticle.png","language":"Shell","funding_links":["https://github.com/sponsors/lifeparticle"],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"readme":"# Cosmic-Terminal\n\nThis script will install [iTerm2](https://github.com/gnachman/iTerm2), [oh-my-zsh](https://github.com/robbyrussell/oh-my-zsh), [Fig](https://fig.io/) and it will download [material-design-colors](https://github.com/MartinSeeler/iterm2-material-design), [powerlevel10k](https://github.com/romkatv/powerlevel10k) and DroidSansMono Nerd Font from [nerd-fonts](https://github.com/ryanoasis/nerd-fonts)\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://user-images.githubusercontent.com/1612112/182571440-bccff10a-399a-4b8c-bf7f-c8e5dedeba3b.png\" /\u003e\n\u003c/p\u003e\n\n## Prerequisite\n\nIterm2 works on Macs with macOS 10.12 or newer.\n\n## Install\n\n### 1. Make `install_cosmic_terminal.sh` executable\n\n```\nchmod +x install_cosmic_terminal.sh\n```\n\nRun\n\n```shell\n./install_cosmic_terminal.sh\n```\n\nor (thanks to [Aidan](https://github.com/cyclotron3k))\n\n```shell\ncurl -s https://raw.githubusercontent.com/lifeparticle/Cosmic-Terminal/master/install_cosmic_terminal.sh | sh\n```\n\n### 2. Set the theme in `~/.zshrc`\n\n```shell\nvim ~/.zshrc\nZSH_THEME=\"powerlevel10k/powerlevel10k\"\n```\n\n### 3. Set the Font\n\n3.1. iTerm2 \u003e Preferences \u003e Profiles \u003e Text Tab\n\n3.2. Click Change font\n\n3.3. Select DroidSansMono Nerd Font\n\nFor more fonts\nhttps://github.com/ryanoasis/nerd-fonts\n\n### 4. Set the color\n\n4.1 iTerm2 \u003e Preferences \u003e Profiles \u003e Colors Tab\n\n4.2 Click Color Presets...\n\n4.3 Click Import...\n\n4.4 Choose material-design-colors.itermcolors file from Downloads folder\n\n4.5 Select the material-design-colors from the dropdown\n\n### 5. Set Aliases in `~/.zshrc`\n\n```shell\nfunction gitall() {\n    git add .\n    if [ \"$1\" != \"\" ]\n    then\n        git commit -m \"$1\"\n    else\n        git commit -m update # default commit message is `update`\n    fi # closing statement of if-else block\n    git push origin HEAD\n}\n```\n\n[Source](https://stackoverflow.com/questions/34340575/zsh-alias-with-parameter)\n\n```shell\ngitdeleteall() {\n    if [ \"$1\" != \"\" ]\n    then\n        git branch -D \"$1\"\n        git push origin --delete \"$1\"\n    else\n        echo \"provide branch name\"\n    fi\n}\n```\n\n```shell\nalias gcm=\"git checkout main\";\nalias gs=\"git status\";\nalias gp=\"git pull\";\nalias gf=\"git fetch\";\n\nalias cra=\"yarn create react-app . --template typescript\"\n```\n\n```shell\ndockernew() {\n    touch Dockerfile\n    touch docker-compose.yml\n}\n```\n\n### 6. Status bar\n\n- 6.1. iTerm2 \u003e Preferences \u003e Profiles \u003e Session tab -\u003e Status bar enabled [check]\n\n  - 6.1.1 Configure status bar\n\n  - 6.1.2 Advanced - Background color -\u003e Use the color picker and choose the backgroung color of the terminal\n\n- 6.2. iTerm2 \u003e Preferences \u003e Appearance \u003e Status bar locatio [Bottom]\n\n### 7. Add Plugins in `~/.zshrc`\n\n```shell\nplugins=(\n    git\n    zsh-autosuggestions\n)\n```\n\n## Fig\n\n1. [Settings](https://fig.io/docs/support/settings) `~/.fig/settings.json`\n\n```shell\n{\n\t\"autocomplete.disable\": false,\n\t\"autocomplete.theme\": \"dark\",\n\t\"autocomplete.firstTokenCompletion\": true\n}\n```\n\n2. Chat GPT\n\nhttps://twitter.com/fig/status/1639299811450171392\n\n## Uninstall\n\n1. run\n\n```shell\n./uninstall_cosmic_terminal.sh\n```\n\nor\n\n```shell\ncurl -s https://raw.githubusercontent.com/lifeparticle/Cosmic-Terminal/master/uninstall_cosmic_treminal.sh | sh\n```\n\n## Troubleshooting\n\n### Tested OS\n\n- macOS Big Sur (Version 11.3)\n\n### List all available shells in macOS X:\n\n```shell\ncat /etc/shells\n```\n\n### To see which shell you’re running:\n\n```shell\necho $0\n```\n\n### To change to bash shell:\n\n```shell\nchsh -s /bin/bash\n```\n\n### To change to zsh shell:\n\n```shell\nchsh -s /bin/zsh\n```\n\n### [Understanding path](https://github.com/rbenv/rbenv#understanding-path)\n\n```shell\n# if you're using bash\n$ echo 'export PATH=\"/usr/local/a/b/c:$PATH\"' \u003e\u003e ~/.bashrc\n$ source ~/.bashrc\n\n# or if you're using zsh\n$ echo 'export PATH=\"/usr/local/a/b/c:$PATH\"' \u003e\u003e ~/.zshrc\n$ source ~/.zshrc\n```\n\n### [What should/shouldn't go in .zshenv, .zshrc, .zlogin, .zprofile, .zlogout?](https://unix.stackexchange.com/questions/71253/what-should-shouldnt-go-in-zshenv-zshrc-zlogin-zprofile-zlogout#:~:text=zprofile%20is%20meant%20as%20an,the%20setopt%20and%20unsetopt%20commands)\n\n## Other CLI tools\n\n```shell\nbrew install rich-cli\nrich README.md\n```\n\n## Bug Reports and Feature Requests\n\nPlease create an issue with as much information you can. Thank you.\n\n## Author\n\nMahbub Zaman (https://mahbub.ninja)\n\n## License\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flifeparticle%2FCosmic-Terminal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flifeparticle%2FCosmic-Terminal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flifeparticle%2FCosmic-Terminal/lists"}