mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-11-18 00:16:26 +00:00
14 lines
307 B
Bash
Executable File
14 lines
307 B
Bash
Executable File
#! /bin/bash
|
|
|
|
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
|