Giter VIP home page Giter VIP logo

config's Introduction

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 "[email protected]"

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

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 !

config's People

Contributors

matthieudou avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.