nixos/install.sh

21 lines
500 B
Bash
Executable file

#! /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)"
if [ ! -e "$CONFIG_DIR/$FILENAME" ]
then
ln -s $(readlink -f "$FILE") "$CONFIG_DIR/$FILENAME"
echo "$(readlink -f $FILE) -> $CONFIG_DIR/$FILENAME"
else
echo "$CONFIG_DIR/$FILENAME already exists"
fi
done
# nvim setup
./config/nvim/install.sh