zeus
2 years ago
1 changed files with 8 additions and 1 deletions
@ -1,5 +1,12 @@ |
|||
docker stop my-nvim-appl |
|||
docker rm my-nvim-appl |
|||
docker volume create my-nvim-volume |
|||
docker run -it -v my-nvim-volume:/root $(pwd):/root/appl --name my-nvim-appl mashmb/nvim:dev /bin/bash |
|||
|
|||
if [ $# -eq 0 ]; then |
|||
docker run -it -v my-nvim-volume:/root -v $(pwd):/root/appl --name my-nvim-appl hub.swarmlab.io:5443/nvim /bin/bash -c "nvim" |
|||
else |
|||
#echo "Arguments provided" |
|||
docker run -it -v my-nvim-volume:/root -v $(pwd):/root/appl --name my-nvim-appl hub.swarmlab.io:5443/nvim /bin/bash -c "nvim $1" |
|||
fi |
|||
|
|||
|
|||
|
Loading…
Reference in new issue