2021-06-09 17:23:48 +00:00
|
|
|
#! /bin/bash
|
|
|
|
|
2021-12-17 04:50:37 +00:00
|
|
|
set -ex
|
2021-06-09 17:23:48 +00:00
|
|
|
|
2021-12-17 04:50:37 +00:00
|
|
|
# VIM_SYNC_DIR=$HOME/vim-settings
|
|
|
|
# # copy settings to volume
|
|
|
|
# [ -d "$VIM_SYNC_DIR" ] || cp -r /vim-settings "$VIM_SYNC_DIR"
|
|
|
|
#
|
|
|
|
# # Link config files
|
|
|
|
# [ -d "$XDG_CONFIG_HOME" ] || mkdir -p "$XDG_CONFIG_HOME"
|
|
|
|
# [ -d "$XDG_CONFIG_HOME/nvim" ] || ln -s "$VIM_SYNC_DIR/vim" "$XDG_CONFIG_HOME/nvim"
|
|
|
|
# [ -d "$XDG_CONFIG_HOME/nvim/backup" ] || mkdir -p "$XDG_CONFIG_HOME/nvim/backup"
|
|
|
|
# [ -d "$HOME/.vim" ] || ln -s "$VIM_SYNC_DIR/vim" "$HOME/.vim"
|
|
|
|
# [ -f "$HOME/.vimrc" ] || ln -s "$VIM_SYNC_DIR/vim/init.vim" "$HOME/.vimrc"
|
2021-06-09 17:23:48 +00:00
|
|
|
|
2021-12-17 04:50:37 +00:00
|
|
|
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"
|
2021-06-09 17:23:48 +00:00
|
|
|
|
2022-01-03 06:06:47 +00:00
|
|
|
# TS_PARSERS="$HOME/.local/share/nvim/site/pack/packer/start/nvim-treesitter/parser"
|
|
|
|
# [ -d "$VOLUME_DATA/ts-parsers" ] || mkdir -p "$VOLUME_DATA/ts-parsers"
|
|
|
|
# rm -fr "$TS_PARSERS"
|
|
|
|
# ln -s "$VOLUME_DATA/ts-parsers" "$TS_PARSERS"
|
|
|
|
#
|
|
|
|
# TS_PARSERS="$HOME/.local/share/nvim/site/parser"
|
|
|
|
# [ -d "$VOLUME_DATA/ts-parsers" ] || mkdir -p "$VOLUME_DATA/ts-parsers"
|
|
|
|
# rm -fr "$TS_PARSERS"
|
|
|
|
# ln -s "$VOLUME_DATA/ts-parsers" "$TS_PARSERS"
|
2021-12-17 04:50:37 +00:00
|
|
|
|
|
|
|
if [ "$1" == "bash" ]; then
|
|
|
|
exec "$@"
|
|
|
|
else
|
|
|
|
exec nvim "$@"
|
|
|
|
fi
|