{"id":18465726,"url":"https://github.com/aymaneallaoui/setup-terminal","last_synced_at":"2026-03-04T06:01:49.579Z","repository":{"id":183028880,"uuid":"669493263","full_name":"aymaneallaoui/setup-terminal","owner":"aymaneallaoui","description":"my terminal setup for ps","archived":false,"fork":false,"pushed_at":"2025-06-09T17:44:04.000Z","size":12558,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-09T18:29:21.799Z","etag":null,"topics":["powershell","powershell-script","powershell-theme","terminal","terminal-setup","terminal-themes","windows-development"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","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/aymaneallaoui.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":"2023-07-22T13:07:31.000Z","updated_at":"2025-06-09T17:44:07.000Z","dependencies_parsed_at":"2024-12-25T08:11:15.181Z","dependency_job_id":"ac1f405f-2d7a-42e1-95f4-207c4a02e481","html_url":"https://github.com/aymaneallaoui/setup-terminal","commit_stats":null,"previous_names":["aymaneallaoui/setup-terminal"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aymaneallaoui/setup-terminal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aymaneallaoui%2Fsetup-terminal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aymaneallaoui%2Fsetup-terminal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aymaneallaoui%2Fsetup-terminal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aymaneallaoui%2Fsetup-terminal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aymaneallaoui","download_url":"https://codeload.github.com/aymaneallaoui/setup-terminal/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aymaneallaoui%2Fsetup-terminal/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30073674,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T05:31:57.858Z","status":"ssl_error","status_checked_at":"2026-03-04T05:31:38.462Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["powershell","powershell-script","powershell-theme","terminal","terminal-setup","terminal-themes","windows-development"],"created_at":"2024-11-06T09:14:00.460Z","updated_at":"2026-03-04T06:01:49.571Z","avatar_url":"https://github.com/aymaneallaoui.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Universal Terminal Setup 🚀\n\n![Terminal Preview](image-6.png)\n\nA **one-run script** that automatically sets up a beautiful and powerful terminal environment for both **Windows PowerShell** and **Linux/WSL**!\n\n## ✨ What's New\n\n- 🎯 **One-click setup** - No more 5 manual steps!\n- 🔄 **Cross-platform** - Works on Windows, Linux, WSL, and macOS\n- 🤖 **Smart detection** - Automatically detects your environment\n- ⚡ **Modern tools** - Uses the latest terminal enhancements\n\n## 🚀 Quick Start\n\n### One-Line Installation\n\n```bash\n# Download and run the setup script\ncurl -fsSL https://raw.githubusercontent.com/aymaneallaoui/setup-terminal/master/setup.sh | bash\n```\n\nOr download and run manually:\n\n```bash\n# Clone the repository\ngit clone https://github.com/aymaneallaoui/setup-terminal.git\ncd setup-terminal\n\n# Make the script executable and run it\nchmod +x setup.sh\n./setup.sh\n```\n\n### Windows PowerShell Alternative\n\nIf you're on Windows and prefer PowerShell:\n\n```powershell\n# Run directly in PowerShell\niwr -useb https://raw.githubusercontent.com/aymaneallaoui/setup-terminal/master/setup.ps1 | iex\n```\n\n## 🎨 Features\n\n### 🖼️ Beautiful Terminal Icons\n![Terminal Icons](image-1.png)\n\n### 📜 Enhanced Command History\n![Command History](image-2.png)\n\n### 🔍 Fuzzy File Finder\nUse `Ctrl + F` to search for files and `Ctrl + R` to search command history\n![File Finder](image-3.png)\n\n### 🔧 Improved Git Experience\n![Git Integration](image-4.png)\n\nGit commands auto-completion: `git ch` + `Tab` → `git checkout`\n\n### ⚡ PowerShell Auto-Completion\n![PowerShell Completion](image-5.png)\n\nPowerShell commands auto-completion: `Get-` + `Tab` → `Get-Command`\n\n## 🛠️ What Gets Installed\n\n### For Linux/WSL:\n- **fzf** - Fuzzy finder for files and command history\n- **Starship** - Beautiful, fast prompt\n- **Zsh + Oh My Zsh** (if Zsh is available)\n- **Zsh plugins**:\n  - zsh-autosuggestions\n  - zsh-syntax-highlighting\n  - powerlevel10k theme\n- **Git integration** with helpful aliases\n- **Enhanced Bash** configuration (if Zsh not available)\n\n### For Windows PowerShell:\n- **Oh My Posh** - Beautiful prompt system\n- **Scoop** - Package manager for Windows\n- **PowerShell modules**:\n  - PSReadLine - Enhanced command line editing\n  - Terminal-Icons - File and folder icons\n  - Posh-Git - Git integration\n  - PSFzf - Fuzzy finder integration\n- **fzf** - File and history search\n- **Git aliases** and auto-completion\n\n## 🎛️ Key Bindings\n\n| Shortcut | Function |\n|----------|----------|\n| `Ctrl + R` | Search command history |\n| `Ctrl + F` | Find files |\n| `Tab` | Auto-complete commands/paths |\n| `↑/↓` | Navigate command history |\n\n## 📋 Git Aliases\n\nThe setup includes these helpful git aliases:\n\n```bash\ngs    # git status\nga    # git add\ngc    # git commit\ngp    # git push\ngl    # git log --oneline\ngd    # git diff\ngb    # git branch\ngco   # git checkout\n```\n\n## 🔧 Customization\n\n### Changing Themes\n\n**For Zsh (Linux/WSL):**\n```bash\n# Edit ~/.zshrc and change the theme line\nZSH_THEME=\"powerlevel10k/powerlevel10k\"\n```\n\n**For PowerShell:**\n```powershell\n# Edit your PowerShell profile and change the Oh My Posh theme\noh-my-posh init pwsh --config \"path/to/your/theme.omp.json\" | Invoke-Expression\n```\n\n### Adding Custom Aliases\n\n**Linux/WSL:**\nAdd to `~/.zshrc` or `~/.bashrc`:\n```bash\nalias myalias='my command'\n```\n\n**PowerShell:**\nAdd to your PowerShell profile:\n```powershell\nSet-Alias myalias 'My-Command'\n```\n\n## 🐛 Troubleshooting\n\n### Script Won't Run\nMake sure the script is executable:\n```bash\nchmod +x setup.sh\n```\n\n### PowerShell Execution Policy Error\nRun this in PowerShell as Administrator:\n```powershell\nSet-ExecutionPolicy RemoteSigned -Scope CurrentUser\n```\n\n### Missing Dependencies\nThe script automatically installs dependencies, but if you encounter issues:\n\n**Linux/WSL:**\n```bash\nsudo apt update \u0026\u0026 sudo apt install curl git build-essential\n```\n\n**Windows:**\nInstall Git and PowerShell from their official websites.\n\n### WSL Specific Issues\nIf you're using WSL and encounter font issues, install a Nerd Font in Windows Terminal:\n1. Download a Nerd Font (e.g., FiraCode Nerd Font)\n2. Install it in Windows\n3. Set it as the font in Windows Terminal settings\n\n## 🆕 Migration from Old Setup\n\nIf you were using the old 5-step process:\n\n1. **Backup your current config** (optional):\n   ```bash\n   cp ~/.zshrc ~/.zshrc.backup\n   cp $PROFILE $PROFILE.backup  # PowerShell\n   ```\n\n2. **Run the new setup**:\n   ```bash\n   curl -fsSL https://raw.githubusercontent.com/aymaneallaoui/setup-terminal/master/setup.sh | bash\n   ```\n\n3. **Restart your terminal**\n\nThe new setup will automatically detect and preserve compatible configurations.\n\n## 🤝 Contributing\n\nWant to improve this setup? Contributions are welcome!\n\n1. Fork the repository\n2. Create a feature branch: `git checkout -b feature/amazing-feature`\n3. Make your changes\n4. Test on different environments\n5. Submit a pull request\n\n### Adding Support for New Shells/OS\nThe script is designed to be extensible. To add support for a new environment:\n\n1. Add detection logic in `detect_environment()`\n2. Create a new setup function (e.g., `setup_fish()`)\n3. Add the case in the main function\n4. Test thoroughly\n\n## 📜 License\n\nThis project is open source and available under the MIT License.\n\n## 🙏 Acknowledgments\n\n- Original setup by [aymaneallaoui](https://github.com/aymaneallaoui)\n- Enhanced with cross-platform support\n- Thanks to the maintainers of:\n  - [Oh My Posh](https://ohmyposh.dev/)\n  - [Oh My Zsh](https://ohmyz.sh/)\n  - [Starship](https://starship.rs/)\n  - [fzf](https://github.com/junegunn/fzf)\n  - All the PowerShell and Zsh plugin authors\n\n---\n\n## 🎉 Enjoy Your Enhanced Terminal!\n\nAfter installation, restart your terminal and enjoy:\n- ⚡ Faster workflow with fuzzy finding\n- 🎨 Beautiful, informative prompts\n- 🔧 Powerful git integration\n- 📝 Enhanced command editing\n- 🚀 Cross-platform consistency\n\n**Star this repo if it helped you! ⭐**","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faymaneallaoui%2Fsetup-terminal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faymaneallaoui%2Fsetup-terminal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faymaneallaoui%2Fsetup-terminal/lists"}