this code is from
add this code to the top of your .zshrc
file
ZM_HOME=${HOME}/.local/share/zm
source ${ZM_HOME}/zm.zsh 2> /dev/null || {
mkdir -p $(dirname $ZM_HOME)
git clone https://github.com/nueks/zm $ZM_HOME
source ${ZM_HOME}/zm.zsh
}
zm.load romkatv/zsh-defer
$ docker run -it --rm --name zm \
-v $(pwd)/sample/zshrc:/root/.zshrc \
zm.env
or
$ docker run -it --rm --name zm \
-v $(pwd)/sample/zshrc:/root/.zshrc \
-v $(pwd):/root/.local/share/zm \
zm.env
or
$ docker run -d --rm --name zm --init \
-v $(pwd)/sample/zshrc:/root/.zshrc \
zm.env -c "sleep inf"
$ docker exec -it -w /root zm zsh
$ for i in $(seq 1 10); do time zsh -i -c exit; done
$ zm bench