Skip to content
This repository has been archived by the owner on Mar 14, 2023. It is now read-only.

Configuration

ZeroC0D3 Team edited this page Nov 19, 2017 · 1 revision

Configuration

Generate Public-Key (without password)

/usr/bin/ssh-keygen -t rsa -b 4096 -C "YOUR@EMAIL.com" -f $HOME/.ssh/id_rsa -q -N "";

Git Configuration

git config --global color.ui true
git config --global user.name "YOUR NAME"
git config --global user.email "YOUR@EMAIL.com"

Check SSH

ssh -T git@github.com

Installation Configuration

  • Ruby Version
    DEFAULT_VERSION='2.4.2'
    
  • Install with rbenv Package Manager
    DEFAULT_PACKAGE='rbenv'
    
  • Install with rvm Package Manager
    DEFAULT_PACKAGE='rvm'
    
  • Your Username & Path (Home)
    USERNAME='zeroc0d3'         (default: USERNAME=`echo $USER`)
    PATH_HOME='/home/zeroc0d3'  (default: PATH_HOME=`echo $HOME`)
    
  • Add this configuration for Bash (~/.bashrc) and/or ZSH (~/.zshrc)
    ### Path Ruby RBENV / RVM ###
    export RBENV_ROOT="$HOME/.rbenv"
    export RVM_ROOT="/usr/local/rvm"
    
    ### rbenv (Ruby) default ###
    if [ -d "$RBENV_ROOT" ] 
    then
      export PATH="$RBENV_ROOT/bin:${PATH}"
      eval "$(rbenv init -)"
      export PATH="$RBENV_ROOT/plugins/ruby-build/bin:$PATH"
      # export RAILS_ENV=staging
    else
      ### rvm (Ruby) - alternative ###
      if [ -d "$RVM_ROOT" ] 
      then
        export PATH="$PATH:$RVM_ROOT/bin"
        source $RVM_ROOT/scripts/rvm
    
        # set PATH alternatives using this:
        [[ -s "$RVM_ROOT/scripts/rvm"  ]] && source "$RVM_ROOT/scripts/rvm"
      fi 
    fi