Last active
December 18, 2022 19:25
-
-
Save pradyumnac/15c89ceac209bf3e008ad6ea82ec1ef6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
# Script to test a specific version of script locally | |
export NVIM_BINARY="$HOME/.local/bin/nvim081" | |
export VERSION="0.8.1" | |
# # @nvim-Install | |
# curl https://github.com/neovim/neovim/releases/download/v$VERSION/nvim-linux64.tar.gz -o ~/Downloads/nvim.tar.gz -L | |
# tar -zxf ~/Downloads/nvim.tar.gz -C ~/.local/bin --wildcards "nvim-linux64/bin/*" --strip-components=2 | |
# mv ~/.local/bin/nvim $NVIM_BINARY | |
# tar -zxf ~/Downloads/nvim.tar.gz -C ~/repos/nvim-alt/data/ --wildcards "nvim-linux64/share/*" --strip-components=2 | |
# ln -s ~/repos/env/shellscripts/nvim-local-run.sh ~/.local/bin/v-l | |
# echo "installed as nvim081" | |
# Run | |
export NVIM_ALT_REPO_DIR="$HOME/repos/nvim-alt" | |
export XDG_CONFIG_HOME="$NVIM_ALT_REPO_DIR/config" | |
export XDG_DATA_HOME="$NVIM_ALT_REPO_DIR/data" | |
export VIMRUNTIME="$XDG_DATA_HOME/nvim/runtime" | |
export XDG_CACHE_HOME="$NVIM_ALT_REPO_DIR/.cache" | |
exec $NVIM_BINARY "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment