1
0
Fork 0
This commit is contained in:
Adrien BAK 2024-06-13 14:27:18 +00:00 committed by GitHub
commit c091af4919
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

31
install.zsh Normal file
View file

@ -0,0 +1,31 @@
#
# Install Prezto by creating a bunch of symlinks.
#
# Authors:
# Adrien Bak <adrien.bak@gmail.com>
#
#get the folder containing this script
install_folder=${0:a:h}
setopt EXTENDED_GLOB
if [[ $1 == "--dry-run" ]]; then
dryrun=true
echo 'Dry-Run'
else
dryrun=false
fi
for rcfile in "${install_folder}"/runcoms/^README.md(.N); do
target="$rcfile"
symlink="${ZDOTDIR:-$HOME}/.${rcfile:t}"
if $dryrun ; then
echo "${symlink} --> ${target}"
else
ln -s ${target} ${symlink}
fi
done