mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-11-18 00:06:27 +00:00
21 lines
555 B
Bash
Executable File
21 lines
555 B
Bash
Executable File
#! /bin/bash
|
|
|
|
set -e
|
|
|
|
container_name=nvim-$USER
|
|
|
|
if ! docker inspect "${container_name}-home" > /dev/null ; then
|
|
docker volume create "${container_name}-home"
|
|
fi
|
|
|
|
docker run --interactive --rm --tty \
|
|
--name "$container_name" \
|
|
--env "NVIM_COLOR=$NVIM_COLOR" \
|
|
--volume "${container_name}-home:/home/vividboarder/.data" \
|
|
--volume "$(pwd):/home/vividboarder/data" \
|
|
--workdir /home/vividboarder/data \
|
|
--entrypoint /docker-entry.sh \
|
|
--user "vividboarder:$(id -g)" \
|
|
--group-add users \
|
|
vividboarder/my-neovim "$@"
|