vim-settings/docker/docker-entry.sh

14 lines
307 B
Bash
Raw Permalink Normal View History

#! /bin/bash
2022-01-06 22:50:04 +00:00
set -e
VOLUME_DATA=/home/vividboarder/.data
[ -d "$VOLUME_DATA/nvim/backup" ] || mkdir -p "$VOLUME_DATA/nvim/backup"
[ -d "$XDG_CONFIG_HOME/nvim/backup" ] || ln -s "$VOLUME_DATA/nvim/backup" "$XDG_CONFIG_HOME/nvim/backup"
if [ "$1" == "bash" ]; then
exec "$@"
else
exec nvim "$@"
fi