summaryrefslogtreecommitdiff
path: root/utils/installer/install.sh
diff options
context:
space:
mode:
authorkylo252 <[email protected]>2023-04-12 18:46:29 +0200
committerGitHub <[email protected]>2023-04-12 12:46:29 -0400
commita0b2a0e9bff3a32b55393ca926873eb49ce044be (patch)
tree47e3691f8a2a50e27060d383b032116504f73c46 /utils/installer/install.sh
parent1e1e7bb4f5489cfbef693f3b9a269b0287d4b455 (diff)
feat(installer): allow customizing NVIM_APPNAME (#3896)
Diffstat (limited to 'utils/installer/install.sh')
-rwxr-xr-xutils/installer/install.sh12
1 files changed, 7 insertions, 5 deletions
diff --git a/utils/installer/install.sh b/utils/installer/install.sh
index e55e7214..7bc1968d 100755
--- a/utils/installer/install.sh
+++ b/utils/installer/install.sh
@@ -12,10 +12,12 @@ declare -xr XDG_DATA_HOME="${XDG_DATA_HOME:-"$HOME/.local/share"}"
declare -xr XDG_CACHE_HOME="${XDG_CACHE_HOME:-"$HOME/.cache"}"
declare -xr XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-"$HOME/.config"}"
+declare -xr NVIM_APPNAME="${NVIM_APPNAME:-"lvim"}"
+
declare -xr LUNARVIM_RUNTIME_DIR="${LUNARVIM_RUNTIME_DIR:-"$XDG_DATA_HOME/lunarvim"}"
-declare -xr LUNARVIM_CONFIG_DIR="${LUNARVIM_CONFIG_DIR:-"$XDG_CONFIG_HOME/lvim"}"
-declare -xr LUNARVIM_CACHE_DIR="${LUNARVIM_CACHE_DIR:-"$XDG_CACHE_HOME/lvim"}"
-declare -xr LUNARVIM_BASE_DIR="${LUNARVIM_BASE_DIR:-"$LUNARVIM_RUNTIME_DIR/lvim"}"
+declare -xr LUNARVIM_CONFIG_DIR="${LUNARVIM_CONFIG_DIR:-"$XDG_CONFIG_HOME/$NVIM_APPNAME"}"
+declare -xr LUNARVIM_CACHE_DIR="${LUNARVIM_CACHE_DIR:-"$XDG_CACHE_HOME/$NVIM_APPNAME"}"
+declare -xr LUNARVIM_BASE_DIR="${LUNARVIM_BASE_DIR:-"$LUNARVIM_RUNTIME_DIR/$NVIM_APPNAME"}"
declare -xr LUNARVIM_LOG_LEVEL="${LUNARVIM_LOG_LEVEL:-warn}"
@@ -164,7 +166,7 @@ function main() {
msg "$ADDITIONAL_WARNINGS"
msg "Thank you for installing LunarVim!!"
- echo "You can start it by running: $INSTALL_PREFIX/bin/lvim"
+ echo "You can start it by running: $INSTALL_PREFIX/bin/$NVIM_APPNAME"
echo "Do not forget to use a font with glyphs (icons) support [https://github.com/ryanoasis/nerd-fonts]"
}
@@ -435,7 +437,7 @@ function setup_lvim() {
echo "Preparing Lazy setup"
- "$INSTALL_PREFIX/bin/lvim" --headless -c 'quitall'
+ "$INSTALL_PREFIX/bin/$NVIM_APPNAME" --headless -c 'quitall'
echo "Lazy setup complete"