mirror of
https://github.com/alrayyes/dotfiles/
synced 2023-11-14 15:56:30 +00:00
22 lines
451 B
Bash
Executable File
22 lines
451 B
Bash
Executable File
#!/usr/bin/env zsh
|
|
|
|
# We need the environment to be able to symlink files accordingly
|
|
case "$1" in
|
|
desktop)
|
|
EXTENSION="desktop"
|
|
;;
|
|
thinkpad)
|
|
EXTENSION="thinkpad"
|
|
;;
|
|
esac
|
|
|
|
for d in $(find -- */ -maxdepth 0 -type d | cut -f1 -d '/'); do
|
|
echo "Linking $d..."
|
|
(stow -t "$HOME" "$d")
|
|
done
|
|
|
|
if [ ! -z "$EXTENSION" ]; then
|
|
echo "\n\nDon't forget to symlink these files:\n\n"
|
|
find ~ \( -type l -o -type f \) -name "*.$EXTENSION" -exec ls -al {} \;
|
|
fi
|