dotfiles/bootstrap.sh
Ivan Malison 6174990049 Add iterm settings, tweak bootstrap, bump eamcs pointer.
Fix web_start.

Add remote_clipboard server stuff.

Bump .emacs.d pointer and add remote_os_copy alias.

Way better get_cols

Made git sui git suir

move to same sha as yelp branch for .emacs.d

Bump emacs pointer.

simplified default code for remote_clipboard.

Remove unused functions from .functions.

Added things from yelp branch.

yelpify

Added field separator to get_cols.

Lots of refactoring. Added .lib directory. Moved dotfiles that get symlinked to ~ into their own directory. Remove some vim configuration.

Remove oh-my-zsh.
2014-12-20 02:42:24 -08:00

34 lines
832 B
Bash
Executable File

#!/bin/bash
case `uname` in
'Darwin')
readlink_command='greadlink'
;;
*)
readlink_command='readlink'
esac
CURRENT_DIRECTORY="$(dirname "${BASH_SOURCE}" | xargs "${readlink_command}" -f)/dotfiles"
cd $CURRENT_DIRECTORY
echo "Linking From $CURRENT_DIRECTORY"
function symlink_dotfiles() {
[[ -a ~/.dotfiles-backups ]] || mkdir ~/.dotfiles-backups
for filename in *; do
local link_destination="$HOME/.$filename"
local absolute_path="$($readlink_command -f $filename)"
ln -si $absolute_path $link_destination
done
}
if [ "$1" == "--force" -o "$1" == "-f" ]; then
doIt
else
read -p "This may overwrite existing files in your home directory. Are you sure? (y/n) " -n 1
echo
if [[ $REPLY =~ ^[Yy]$ ]]; then
symlink_dotfiles
fi
fi
unset symlink_dotfiles