{"id":13446823,"url":"https://github.com/deluan/zsh-in-docker","last_synced_at":"2025-05-16T04:05:14.507Z","repository":{"id":41804771,"uuid":"207162804","full_name":"deluan/zsh-in-docker","owner":"deluan","description":"Install Zsh, Oh My Zsh and plugins inside a Docker container with one line!","archived":false,"fork":false,"pushed_at":"2024-09-30T19:07:49.000Z","size":43,"stargazers_count":995,"open_issues_count":9,"forks_count":119,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-05-05T17:19:47.650Z","etag":null,"topics":["docker","dockerfile","oh-my-zsh","vscode","zsh"],"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/deluan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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":"deluan","patreon":null,"open_collective":null,"liberapay":"deluan","ko_fi":"deluan","tidelift":null,"community_bridge":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2019-09-08T19:29:49.000Z","updated_at":"2025-05-04T03:01:34.000Z","dependencies_parsed_at":"2024-01-07T10:50:52.673Z","dependency_job_id":"aaca3b46-14f3-4763-bccd-003899112246","html_url":"https://github.com/deluan/zsh-in-docker","commit_stats":{"total_commits":71,"total_committers":12,"mean_commits":5.916666666666667,"dds":0.2816901408450704,"last_synced_commit":"55a4e476f78f37204af9dfc0290a92e52cf881b1"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deluan%2Fzsh-in-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deluan%2Fzsh-in-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deluan%2Fzsh-in-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deluan%2Fzsh-in-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deluan","download_url":"https://codeload.github.com/deluan/zsh-in-docker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254464895,"owners_count":22075570,"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":["docker","dockerfile","oh-my-zsh","vscode","zsh"],"created_at":"2024-07-31T05:01:00.774Z","updated_at":"2025-05-16T04:05:14.491Z","avatar_url":"https://github.com/deluan.png","language":"Shell","funding_links":["https://github.com/sponsors/deluan","https://liberapay.com/deluan","https://ko-fi.com/deluan","https://ko-fi.com/K3K21VMDV"],"categories":["Development with Docker","Shell","Plugins","Developer Workflow"],"sub_categories":["Development Environment","ZSH on Windows"],"readme":"# Oh My Zsh Installer for Docker\n\n[![Last Release](https://img.shields.io/github/v/release/deluan/zsh-in-docker?label=latest\u0026style=flat-square)](https://github.com/deluan/zsh-in-docker/releases/latest)\n[![Build](https://img.shields.io/github/actions/workflow/status/deluan/zsh-in-docker/test.yml?branch=master\u0026style=flat-square)](https://github.com/deluan/zsh-in-docker/actions)\n[![Downloads](https://img.shields.io/github/downloads/deluan/zsh-in-docker/total?style=flat-square)](https://github.com/deluan/zsh-in-docker/releases)\n\n\nThis is a script to automate [Oh My Zsh](https://ohmyz.sh/) installation in development containers.\nWorks with any image based on Alpine, Ubuntu, Debian, Amazon Linux, RockyLinux 8,9 and Fedora.\n\nThe original goal was to simplify setting up `zsh` and Oh My Zsh in a Docker image for use with [VSCode's Remote Containers\nextension](https://code.visualstudio.com/docs/remote/containers), but it can be used whenever you\nneed a simple way to install Oh My Zsh and its plugins in a Docker image\n\n## Usage\n\nOne line installation: add the following line in your `Dockerfile`:\n\n```Dockerfile\n# Default powerline10k theme, no plugins installed\nRUN sh -c \"$(wget -O- https://github.com/deluan/zsh-in-docker/releases/download/v1.2.1/zsh-in-docker.sh)\"\n```\n\n#### Optional arguments:\n\n- `-t \u003ctheme\u003e` - Selects the theme to be used. Options are available\n  [here](https://github.com/robbyrussell/oh-my-zsh/wiki/Themes). By default the script installs\n  and uses [Powerlevel10k](https://github.com/romkatv/powerlevel10k), one of the\n  \"fastest and most awesome\" themes for `zsh`. This is my recommended theme. If `\u003ctheme\u003e` is a url, the script will try to install the theme using `git clone`.\n- `-p \u003cplugin\u003e` - Specifies a plugin to be configured in the generated `.zshrc`. List of bundled\n  Oh My Zsh plugins are available [here](https://github.com/robbyrussell/oh-my-zsh/tree/master/plugins).\n  If `\u003cplugin\u003e` is a url, the script will try to install the plugin using `git clone`.\n- `-a \u003cline\u003e` - You can add extra lines at the end of the generated `.zshrc` (but before loading oh-my-zsh) by \n  passing one `-a` argument for each line you want to add. This is useful to customize plugins or themes. \n  For example, if you want to enable [case sensitive completion](https://stackoverflow.com/a/28021691):\n\n  ```Dockerfile\n  RUN sh -c \"$(wget -O- https://github.com/deluan/zsh-in-docker/releases/download/v1.2.1/zsh-in-docker.sh)\" -- \\\n  -a 'CASE_SENSITIVE=\"true\"'\n  ```\n\n- `-x` - Skip installation of dependencies: `zsh`, `git`, `curl`. If you are having issues with the script failing to\n  install these dependencies due to sudo permissions, you can install them yourself in a prior step, and use this flag\n  to make the script skip their installation\n\n\n#### Examples:\n\n```Dockerfile\n# Uses \"robbyrussell\" theme (original Oh My Zsh theme), with no plugins\nRUN sh -c \"$(wget -O- https://github.com/deluan/zsh-in-docker/releases/download/v1.2.1/zsh-in-docker.sh)\" -- \\\n    -t robbyrussell\n```\n\n```Dockerfile\n# Uses \"git\", \"ssh-agent\" and \"history-substring-search\" bundled plugins\nRUN sh -c \"$(wget -O- https://github.com/deluan/zsh-in-docker/releases/download/v1.2.1/zsh-in-docker.sh)\" -- \\\n    -p git -p ssh-agent -p 'history-substring-search' \\\n    -a 'bindkey \"\\$terminfo[kcuu1]\" history-substring-search-up' \\\n    -a 'bindkey \"\\$terminfo[kcud1]\" history-substring-search-down'\n\n```\n\n```Dockerfile\n# Uses \"Spaceship\" theme with some customization. Uses some bundled plugins and installs some more from github\nRUN sh -c \"$(wget -O- https://github.com/deluan/zsh-in-docker/releases/download/v1.2.1/zsh-in-docker.sh)\" -- \\\n    -t https://github.com/denysdovhan/spaceship-prompt \\\n    -a 'SPACESHIP_PROMPT_ADD_NEWLINE=\"false\"' \\\n    -a 'SPACESHIP_PROMPT_SEPARATE_LINE=\"false\"' \\\n    -p git \\\n    -p ssh-agent \\\n    -p https://github.com/zsh-users/zsh-autosuggestions \\\n    -p https://github.com/zsh-users/zsh-completions\n```\n\n## Notes\n\n- The examples above use `wget`, but if you prefer `curl`, just replace `wget -O-` with `curl -L`\n- This scripts requires `git` and `curl` to work properly. If your `Dockerfile` uses `root` as the\n  main user, it should be fine, as the script will install them automatically. If you are using a\n  non-root user, make sure to install the `sudo` package _OR_ to install `git` and `curl` packages\n  _before_ calling this script. In case `sudo` access is an issue and you already have `zsh`, `git` \n  and `curl`, you can use the option `-x` to skip the installations.\n- By default this script will install the `powerlevel10k` theme, as it is one of the fastest and most\n  customizable themes available for zsh. If you want the default Oh My Zsh theme, use the option\n  `-t robbyrussell`\n  \n## Liked it?\n\nIf you like this script, feel free to thank me with a coffee (or a beer :wink:):\n\n[![ko-fi](https://www.ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/K3K21VMDV)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeluan%2Fzsh-in-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeluan%2Fzsh-in-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeluan%2Fzsh-in-docker/lists"}