Sha256: f9ec63e4ca930a253e18b1e25722f1c0008cbbb073c08746e82426826335d87b

Contents?: true

Size: 1.17 KB

Versions: 13

Compression:

Stored size: 1.17 KB

Contents

#
# DOTS Installer
#

if [ -d ~/.dots ]
then
  echo "Error: You already have DOTS installed."
  cd ~/.dots
  exit
fi

echo "\033[0;34mInstalling DOTS...\033[0m"
/usr/bin/env git clone https://github.com/tubbo/dots.git ~/.dots

echo "\033[0;34mLooking for an existing zsh config...\033[0m"
if [ -f ~/.zshrc ] || [ -h ~/.zshrc ]
then
  echo "\033[0;33mFound ~/.zshrc.\033[0m \033[0;32]Backing up to ~/.zshrc.pre-dots\033[0m";
  cp ~/.zshrc ~/.zshrc.pre-dots;
  cp ~/.zshrc ~/.dots/config/zshrc;
  rm ~/.zshrc;
else
  echo "\033[0;34mCreating a template ZSH config from our example...\033[0m"
  cp ~/.dots/templates/zshrc.zsh-template ~/.zshrc
fi

echo "\033[0;34m Linking ZSH config...\033[0m"
ln -s ~/.dots/config/zshrc ~/.zshrc;

echo "\033[0;34m Synchronizing your custom binaries...\033[0m"
cp -R $HOME/bin/** $DOTS/bin
mv $HOME/bin $HOME/bin-pre-dots
ln -s $HOME/bin $DOTS/bin

echo "\033[0;34mCopying your current PATH and adding it to the end of ~/.zshrc for you.\033[0m"
echo "export PATH=$PATH" >> ~/.zshrc

echo "\033[0;34mTime to change your default shell to zsh!\033[0m"
chsh -s `which zsh`

echo "\n\n \033[0;32mCongratulations! We like yo DOTS!\033[0m"
/usr/bin/env zsh
source ~/.zshrc

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
zsh_dots-0.6.5 vendor/oh-my-zsh/install.sh
zsh_dots-0.6.3 vendor/oh-my-zsh/install.sh
zsh_dots-0.6.2 vendor/oh-my-zsh/install.sh
zsh_dots-0.6.0 vendor/oh-my-zsh/install.sh
zsh_dots-0.5.9 vendor/oh-my-zsh/install.sh
zsh_dots-0.5.8 vendor/oh-my-zsh/install.sh
zsh_dots-0.5.7 vendor/oh-my-zsh/install.sh
zsh_dots-0.5.6 vendor/oh-my-zsh/install.sh
zsh_dots-0.5.5 vendor/oh-my-zsh/install.sh
zsh_dots-0.5.4 vendor/oh-my-zsh/install.sh
zsh_dots-0.5.3 vendor/oh-my-zsh/install.sh
zsh_dots-0.5.1 vendor/oh-my-zsh/install.sh
zsh_dots-0.5.0 vendor/oh-my-zsh/install.sh