Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/Cellophan/czsh

oh-my-zsh with agnoster theme in a container
https://github.com/Cellophan/czsh

docker zsh zsh-theme

Last synced: 2 months ago
JSON representation

oh-my-zsh with agnoster theme in a container

Lists

README

        

# czsh
Some have a repo with dot-files, here is a repo with my shell and tools packaged in a docker image. What started as [zsh](https://en.wikipedia.org/wiki/Z_shell) with [oh-my-zsh](https://github.com/robbyrussell/oh-my-zsh) and [agnoster theme](https://github.com/agnoster/agnoster-zsh-them) in a container became a repo of the settings I like and some helpers.

This is thought as a toolbox and contains:

* `docker` (the client)
* `refresh` for pulling the image itself.
* [docker-compose](https://docs.docker.com/compose/), [terraform](https://www.terraform.io/), [aws](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-welcome.html), [kubectl](https://kubernetes.io/docs/tasks/tools/install-kubectl/)
* zsh aliases
* Check the content of material/scripts/
* ...

## Use

The goal is to feel at home without impacting the host itself. There are 2 ways to start the container:
* `czsh`: The current directory is mounted inside the container.
* `me`: Each sub-directory of your HOME directory are mounted in the container.

Each of them can be started as a shell or as an environment for a single command:

* As a shell:

```
$ czsh

```

* As an environment:

```
$ czsh command
```

## Install / Deploy

This is just shortcuts added in `/usr/local/bin`:

```
docker run --rm --entrypoint deploy -v /usr/local/bin:/deploydir cell/czsh
```

### powerline

One nice thing of the [agnoster theme](https://github.com/agnoster/agnoster-zsh-them) is the prompt. Sadly it relies on some fonts on your host and compatibilities with your terminal. `czsh` doesn't solve this problem.

What worked for me is to follow the steps in the `Dockerfile` of this project after `#powerline`, [there](https://github.com/Cellophan/czsh/blob/master/Dockerfile).

## Others

This image relies on [cell/playground](https://github.com/Cellophan/dockerized-playground).

A similar image centered on `vim` is [cell/cvim](https://github.com/Cellophan/cvim).