@@ -18,7 +18,7 @@ One line installation: add the following line in your `Dockerfile`:
18
18
19
19
``` Dockerfile
20
20
# Default powerline10k theme, no plugins installed
21
- RUN sh -c "$(wget -O- https://github.com/deluan/zsh-in-docker/releases/download/v1.1.4 /zsh-in-docker.sh)"
21
+ RUN sh -c "$(wget -O- https://github.com/deluan/zsh-in-docker/releases/download/v1.1.5 /zsh-in-docker.sh)"
22
22
```
23
23
24
24
#### Optional arguments:
@@ -33,23 +33,26 @@ RUN sh -c "$(wget -O- https://github.com/deluan/zsh-in-docker/releases/download/
33
33
- ` -a <line> ` - You can add extra lines at the end of the generated ` .zshrc ` (but before loading oh-my-zsh) by
34
34
passing one ` -a ` argument for each line you want to add. This is useful to customize plugins or themes.
35
35
For example, if you want to enable [ case sensitive completion] ( https://stackoverflow.com/a/28021691 ) :
36
-
36
+ - ` -x ` - Skip installation of dependencies: ` zsh ` , ` git ` , ` curl ` . If you are having issues with the script failing to
37
+ install these dependencies due to sudo permissions, you can install them yourself in a prior step, and use this flag
38
+ to make the script skip their installation
39
+
37
40
``` Dockerfile
38
- RUN sh -c "$(wget -O- https://github.com/deluan/zsh-in-docker/releases/download/v1.1.4 /zsh-in-docker.sh)" -- \
41
+ RUN sh -c "$(wget -O- https://github.com/deluan/zsh-in-docker/releases/download/v1.1.5 /zsh-in-docker.sh)" -- \
39
42
-a 'CASE_SENSITIVE="true"'
40
43
```
41
44
42
45
#### Examples:
43
46
44
47
``` Dockerfile
45
48
# Uses "robbyrussell" theme (original Oh My Zsh theme), with no plugins
46
- RUN sh -c "$(wget -O- https://github.com/deluan/zsh-in-docker/releases/download/v1.1.4 /zsh-in-docker.sh)" -- \
49
+ RUN sh -c "$(wget -O- https://github.com/deluan/zsh-in-docker/releases/download/v1.1.5 /zsh-in-docker.sh)" -- \
47
50
-t robbyrussell
48
51
```
49
52
50
53
``` Dockerfile
51
54
# Uses "git", "ssh-agent" and "history-substring-search" bundled plugins
52
- RUN sh -c "$(wget -O- https://github.com/deluan/zsh-in-docker/releases/download/v1.1.4 /zsh-in-docker.sh)" -- \
55
+ RUN sh -c "$(wget -O- https://github.com/deluan/zsh-in-docker/releases/download/v1.1.5 /zsh-in-docker.sh)" -- \
53
56
-p git -p ssh-agent -p 'history-substring-search' \
54
57
-a 'bindkey "\$ terminfo[kcuu1]" history-substring-search-up' \
55
58
-a 'bindkey "\$ terminfo[kcud1]" history-substring-search-down'
@@ -58,7 +61,7 @@ RUN sh -c "$(wget -O- https://github.com/deluan/zsh-in-docker/releases/download/
58
61
59
62
``` Dockerfile
60
63
# Uses "Spaceship" theme with some customization. Uses some bundled plugins and installs some more from github
61
- RUN sh -c "$(wget -O- https://github.com/deluan/zsh-in-docker/releases/download/v1.1.4 /zsh-in-docker.sh)" -- \
64
+ RUN sh -c "$(wget -O- https://github.com/deluan/zsh-in-docker/releases/download/v1.1.5 /zsh-in-docker.sh)" -- \
62
65
-t https://github.com/denysdovhan/spaceship-prompt \
63
66
-a 'SPACESHIP_PROMPT_ADD_NEWLINE="false"' \
64
67
-a 'SPACESHIP_PROMPT_SEPARATE_LINE="false"' \
@@ -74,7 +77,8 @@ RUN sh -c "$(wget -O- https://github.com/deluan/zsh-in-docker/releases/download/
74
77
- This scripts requires ` git ` and ` curl ` to work properly. If your ` Dockerfile ` uses ` root ` as the
75
78
main user, it should be fine, as the script will install them automatically. If you are using a
76
79
non-root user, make sure to install the ` sudo ` package _ OR_ to install ` git ` and ` curl ` packages
77
- _ before_ calling this script
80
+ _ before_ calling this script. In case ` sudo ` access is an issue and you already have ` zsh ` , ` git `
81
+ and ` curl ` , you can use the option ` -x ` to skip the installations.
78
82
- By default this script will install the ` powerlevel10k ` theme, as it is one of the fastest and most
79
83
customizable themes available for zsh. If you want the default Oh My Zsh theme, use the option
80
84
` -t robbyrussell `
0 commit comments