mirror of https://github.com/harish2704/dotFiles
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
376 B
13 lines
376 B
#!/usr/bin/env bash
|
|
THIS_DIR=$(dirname $(readlink -f $0))
|
|
PKG=LazyVim
|
|
|
|
nvconf="$THIS_DIR/$PKG"
|
|
|
|
if [[ -d $nvconf ]]; then
|
|
mkdir -p $nvconf/cache
|
|
exec -a "Lazyvim" alacritty -e env XDG_CACHE_DIR=$nvconf/cache XDG_CACHE_HOME=$nvconf/cache XDG_DATA_HOME=$nvconf/share XDG_CONFIG_HOME=$nvconf nvim $@ &
|
|
else
|
|
echo "invalid \$PKG. Available values:"
|
|
ls `dirname $nvconf`
|
|
fi
|
|
|