1
0
Fork 0
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.
prezto/install.zsh

32 lines
498 B

#
# 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