This file is directly inspired from lewagon/setup
Take whatever you want to take, zsh or everything else.
First of all, you need to fork the repo, your configuration files will be personnal, so there will be some updatings ( like your theme, your typo and so on ).
For that, go to github and click on Fork
.
For a proper installation of the files, I recommand to do the install the whole file in a dropbox directory. But feel free to adapt it as you want.
Run the following commands :
if you don't want to have it in your dropbox, adapt the lines.
Using ZSH
instead of Bash
curl -L http://install.ohmyz.sh | sh
You'll need to see this at the end.
__ __
____ / /_ ____ ___ __ __ ____ _____/ /_
/ __ \/ __ \ / __ `__ \/ / / / /_ / / ___/ __ \
/ /_/ / / / / / / / / / / /_/ / / /_(__ ) / / /
\____/_/ /_/ /_/ /_/ /_/\__, / /___/____/_/ /_/
/____/ ....is now installed!
please restart the terminal after this.
You can import iTerm preferences in the folder iTerm2
Generating a SSH key is something important to authenticate you on GitHub and others like Heroku
Open a terminal and type this, replacing the email with yours (the same one you used to create your GitHub account). It will prompt for information. Just press enter until it asks for a passphrase.
mkdir -p ~/.ssh && ssh-keygen -t rsa -C "your_email@example.com"
You will need to provide your public SSH key to GitHub
cat ~/.ssh/id_rsa.pub
It will show your public key in the terminal. After that you will need to add this key on GitHub
You can check if it worked
ssh -T git@github.com
Should return you something like this
# Hi --------! You've successfully authenticated, but GitHub does not provide shell access
First, let's clean ruby...
rvm implode && sudo rm -rf ~/.rvm
# If you got "zsh: command not found: rvm", carry on. It means `rvm` is not
# on your computer, that's what we want!
sudo rm -rf $HOME/.rbenv /usr/local/rbenv /opt/rbenv /usr/local/opt/rbenv
Now let's get rbenv
and ruby-build
packages from Homebrew, they'll be useful.
brew uninstall --force rbenv ruby-build
unset RBENV_ROOT && source ~/.zshrc
brew install rbenv ruby-build && source ~/.zshrc
after that you can install a proper version of ruby
rbenv install 2.3.3
Replace 2.3.3 with the version that you want to download
Set this version to default
rbenv global 2.3.3
Same as above, replace 2.3.3 with the version that you just installed
Check your ruby version
ruby -v
Some useful gems...
You can add some gems if you want. Just separate with a space
gem install bundler rspec rubocop pry pry-byebug hub colored gist
you can type some useful commands if you want to... No need
like :
echo "Requiring password immediately after sleep or screen saver begins"
defaults write com.apple.screensaver askForPassword -int 1
defaults write com.apple.screensaver askForPasswordDelay -int 0
This will require password immediately after sleep or screen saver begins
You can find lot of other commands here !