-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·43 lines (37 loc) · 1.37 KB
/
install.sh
File metadata and controls
executable file
·43 lines (37 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
# setup oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
if [ -e "$HOME/.zshrc" ]; then
mv "$HOME/.zshrc" "$HOME/.zshrc_old"
fi
CONF_LIST="bashrc gitconfig vim vimrc zshrc zsh.prompt"
for CONF in $CONF_LIST; do
SRC="$PWD/$CONF"
DEST="$HOME/.$CONF"
DEST_OLD="$HOME/.$CONF""_old"
if [[ -f "$DEST" ]]; then
mv "$DEST" "$DEST_OLD"
fi
ln -sv "$SRC" "$DEST"
done
# i3config doesn't follow above pattern
#ln -sv "$PWD/i3config" "$HOME/.config/i3/config"
# clone Vundle.
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
echo "run :VundleInstall from within vim to install bundles"
OS="$(uname -a)"
if [[ "$OS" == *"Darwin"* ]]; then
echo "Install iterm2 from iterm2.com"
echo "Install fonts at $PWD/util/fonts"
# ubuntu customizations
elif [[ "$OS" == *"ubuntu"* || "$OS" == *"Linux"* ]]; then
# install some powerline fonts. Menlo for Powerline preferred
mkdir -p "$HOME/.local/share/fonts/"
cp util/fonts/* "$HOME/.local/share/fonts/"
#TODO test this next install
git clone https://github.com/Anthony25/gnome-terminal-colors-solarized.git thirdparty/gnome-terminal-colors-solarized\
&& sh thirdparty/gnome-terminal-colors-solarized/set_dark.sh
elif [[ "$OS" == *"Cygwin"* ]]; then
# solarized dark colors for cygwin
ln -sv "$PWD/.minttyrc" "$HOME"
fi