Skip to content

Instantly share code, notes, and snippets.

@rderik
Last active August 16, 2018 10:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rderik/dc1ae87c9a658960b1c2159140e11f33 to your computer and use it in GitHub Desktop.
Save rderik/dc1ae87c9a658960b1c2159140e11f33 to your computer and use it in GitHub Desktop.
Basic setup script for new laptop
#!/usr/bin/env sh
dotfile_dir="$HOME/Documents/Development/configuration/dotfiles"
git_repo="https://github.com/rderik/dotfiles.git"
if [ -d $dotfile_dir ]; then
echo "$dot_file already exists exists"
else
echo "Doesn't exists"
mkdir -p $dotfile_dir
git clone $git_repo $dotfile_dir
if [ $? -eq 0 ]; then
echo "Repo cloned successfully!"
if [ ! -d ~/.config/bash ]; then
mkdir -p "$HOME/.config/bash"
fi
ln -s "$dotfile_dir/config/bash/bash_aliases" "$HOME/.config/bash/bash_aliases"
ln -s "$dotfile_dir/config/bash/bash_exports" "$HOME/.config/bash/bash_exports"
ln -s "$dotfile_dir/config/bash/bash_extra" "$HOME/.config/bash/bash_extra"
ln -s "$dotfile_dir/config/bash/bash_path" "$HOME/.config/bash/bash_path"
ln -s "$dotfile_dir/config/bash/bash_prompt" "$HOME/.config/bash/bash_prompt"
#install homebre
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
##install homebrew packages
brew install ack
brew install asciidoc
brew install asciinema
brew install bash
brew install bash-completion
brew install cmake
brew install ctags
## install apps
brew cask install appcleaner
brew cask install caffeine
brew cask install google-chrome
brew cask install iterm2
brew cask install keka
brew cask install licecap
brew cask install ngrok
brew cask install spectacle
brew cask install vlc
fi
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment