2023-01-10 08:06:54 +00:00
|
|
|
#! /usr/bin/env sh
|
|
|
|
# Install various dotfiles into their proper places
|
|
|
|
|
|
|
|
# .config files
|
|
|
|
CONFIG_DIR="${XDG_CONFIG_HOME:-$HOME/.config}"
|
|
|
|
mkdir -p "$CONFIG_DIR"
|
|
|
|
|
|
|
|
for FILE in config/*; do
|
|
|
|
FILENAME="$(basename $FILE)"
|
2023-01-10 10:30:42 +00:00
|
|
|
if [ ! -e "$CONFIG_DIR/$FILENAME" ]
|
|
|
|
then
|
2023-01-10 08:11:27 +00:00
|
|
|
ln -s $(readlink -f "$FILE") "$CONFIG_DIR/$FILENAME"
|
2023-01-10 10:30:42 +00:00
|
|
|
echo "$(readlink -f $FILE) -> $CONFIG_DIR/$FILENAME"
|
2023-01-10 21:41:50 +00:00
|
|
|
else
|
|
|
|
echo "$CONFIG_DIR/$FILENAME already exists"
|
2023-01-10 08:06:54 +00:00
|
|
|
fi
|
|
|
|
done
|
2023-01-10 10:30:42 +00:00
|
|
|
|
2023-01-12 09:01:23 +00:00
|
|
|
# nvim setup - install Packer
|
|
|
|
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
|