Skip to content

Instantly share code, notes, and snippets.

@BbsonLin
Last active October 22, 2018 08:46
Show Gist options
  • Save BbsonLin/719393b3b91febd6175cfd99aeb136e1 to your computer and use it in GitHub Desktop.
Save BbsonLin/719393b3b91febd6175cfd99aeb136e1 to your computer and use it in GitHub Desktop.

Setup for developer

  1. Install Basic
sudo apt install vim git tig htop
  1. Git cz-cli (Ref)
yarn global add commitizen
yarn global add cz-conventional-changelog
echo '{ "path": "cz-conventional-changelog" }' > ~/.czrc

Add export PATH=$PATH:$HOME/.yarn/bin/ in ~/.zshrc

  1. Ruby environment with rbenv (Ref)
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
cd ~/.rbenv && src/configure && make -C src

Add below into ~/.zshrc

# Ruby
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"

Restart a terminal and install rbenv install plugin(Ref)

mkdir -p "$(rbenv root)"/plugins
git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build
rbenv install 2.3.5

Setup oh-my-zsh

  1. Install Basic
sudo apt install zsh
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
  1. Setup Plugin
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

Write plugins=(zsh-autosuggestions) in ~/.zshrc

  1. Setup in ~/bashrc
# Switch to ZSH shell
if test -t 1; then
exec zsh
fi

Setup fonts

1.Source Code Pro(Ref)

#!/bin/sh
# Userland mode (~$USER/), (~/).

# ~/.fonts is now deprecated and that
#FONT_HOME=~/.fonts
# ~/.local/share/fonts should be used instead
FONT_HOME=~/.local/share/fonts

echo "installing fonts at $PWD to $FONT_HOME"
mkdir -p "$FONT_HOME/adobe-fonts/source-code-pro"
# find "$FONT_HOME" -iname '*.ttf' -exec echo '{}' \;

(git clone \
   --branch release \
   --depth 1 \
   'https://github.com/adobe-fonts/source-code-pro.git' \
   "$FONT_HOME/adobe-fonts/source-code-pro" && \
fc-cache -f -v "$FONT_HOME/adobe-fonts/source-code-pro")
  1. Hack(Ref)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment