nixos/install.sh

15 lines
393 B
Bash
Raw Normal View History

#! /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
2023-01-10 08:11:27 +00:00
ln -s $(readlink -f "$FILE") "$CONFIG_DIR/$FILENAME"
fi
echo "$(readlink -f $FILE) -> $CONFIG_DIR/$FILENAME"
done