Skip to content

Commit

Permalink
Switch oh-my-zsh with prezto.
Browse files Browse the repository at this point in the history
  • Loading branch information
c10b10 committed Nov 26, 2015
1 parent c4b1552 commit 0b307bd
Show file tree
Hide file tree
Showing 11 changed files with 529 additions and 136 deletions.
1 change: 0 additions & 1 deletion c10

This file was deleted.

39 changes: 20 additions & 19 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
#!/bin/bash

. $HOME/.dotfiles/c10
symlinks=( \
'ackrc' \
'agignore' \
'vimrc' \
'vim' \
'npmrc' \
'gitignore' \
'zlogin' \
'zshenv' \
'zshrc' \
'zmodules/zprezto' \
'zpreztorc' \
)

rm -rf $HOME/.vim
echo "Initializing submodules"
git submodule update --init --recursive

readarray <<HERE
c10
ackrc
agignore
vimrc
vim
zshrc
npmrc
gitignore
HERE

for file in "${MAPFILE[@]}"; do
# remove trailing new line
cleanfile=$(echo -n $file)
echo "Linking $cleanfile to $HOME/.$cleanfile"
rm -rf $HOME/.$cleanfile
ln -fs $C10_DOTFILES/$cleanfile $HOME/.$cleanfile
for file in "${symlinks[@]}"; do
# http://stackoverflow.com/questions/9532654/bash-expression-after-last-specific-character
echo "Linking $file to $HOME/.${file##*/}"
rm -rf $HOME/.$file
ln -fs $C10_DOTFILES/$file $HOME/.${file##*/}
done
1 change: 0 additions & 1 deletion shell/alias.bash

This file was deleted.

45 changes: 0 additions & 45 deletions shell/global.bash

This file was deleted.

49 changes: 0 additions & 49 deletions shell/oh_my_zsh.bash

This file was deleted.

Loading

0 comments on commit 0b307bd

Please sign in to comment.