Make zsh start by default and allow overriding from script
This commit is contained in:
		@@ -27,7 +27,10 @@ RUN cd /root
 | 
				
			|||||||
    sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" &&\
 | 
					    sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" &&\
 | 
				
			||||||
    ln -sf /root/zshrc/rc /root/.zshrc                                                          &&\
 | 
					    ln -sf /root/zshrc/rc /root/.zshrc                                                          &&\
 | 
				
			||||||
    git clone https://github.com/zsh-users/zsh-syntax-highlighting.git \
 | 
					    git clone https://github.com/zsh-users/zsh-syntax-highlighting.git \
 | 
				
			||||||
    ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
 | 
					    ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting                          &&\
 | 
				
			||||||
 | 
					    chsh -s /bin/zsh
 | 
				
			||||||
 | 
					
 | 
				
			||||||
RUN git clone --depth 1 https://github.com/junegunn/fzf.git /root/.fzf &&\
 | 
					RUN git clone --depth 1 https://github.com/junegunn/fzf.git /root/.fzf &&\
 | 
				
			||||||
    /root/.fzf/install
 | 
					    /root/.fzf/install
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					CMD ["/bin/zsh"]
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -22,7 +22,7 @@ run() {
 | 
				
			|||||||
    fi
 | 
					    fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    mount_point="/mnt/$(basename "$here")"
 | 
					    mount_point="/mnt/$(basename "$here")"
 | 
				
			||||||
    docker run --rm -ti -v "$here":"$mount_point" -w "$mount_point" debian-here /bin/zsh
 | 
					    docker run --rm -ti -v "$here":"$mount_point" -w "$mount_point" debian-here "$@"
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
run
 | 
					run "$@"
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user