You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dotfiles/install.sh

16 lines
332 B

#!/bin/sh
dir=$( dirname -- "$0")
dir=$( realpath -- "$dir"; )
3 years ago
if [[ -z "${XDG_CONFIG_HOME}" ]]; then
CONFIG="${HOME}/.config"
else
CONFIG="${XDG_CONFIG_HOME}"
fi
3 years ago
for file in "${dir}/"* ; do
filename=$(basename -- $file)
[[ -d "$file" ]] && ln -s $file "$CONFIG/"
[[ -f "$file" ]] && ln -s $file "$HOME/.$filename"
3 years ago
done