nixos/install.sh

13 lines
380 B
Bash
Raw Normal View History

#! /usr/bin/env sh
2022-11-01 16:02:06 +00:00
# Install Packer
2022-11-02 08:52:48 +00:00
PACKER_DIR="$HOME/.local/share/nvim/site/pack/packer/start/packer.nvim"
if [ ! -d $PACKER_DIR ]; then
git clone --depth 1 https://github.com/wbthomason/packer.nvim $PACKER_DIR
fi
2022-11-01 16:02:06 +00:00
# Link config directories
2022-11-01 15:17:20 +00:00
mkdir -p $HOME/.config/nvim/
ln -s $(readlink -f init.lua) $HOME/.config/nvim/init.lua
ln -s $(readlink -f lua) $HOME/.config/nvim/lua