Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

matthieudou/config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Instructions

This file is directly inspired from lewagon/setup

Take whatever you want to take, zsh or everything else.

Forking the repo

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.

Installing ZSH

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

Github

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

Ruby with some useful gems

Ruby

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

Gems 💎

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

Mac hacks

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 !

About

Configuration of sublime-text, terminal and ...

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published