[Notes] My develop settings when reinstall

Record my development environment

Install Homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

Install develop tools >

brew cask install visual-studio-code
brew cask install iterm2 
brew cask install docker
brew tap homebrew/cask-fonts
brew cask install font-hack-nerd-font
brew cask install font-fira-code
brew install zsh
brew install python
brew install node

Setting Zsh as default & install oh-my-zsh

sudo sh -c "echo $(which zsh) >> /etc/shells"
chsh -s $(which zsh)
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

iTerm settings

# Preferences > Profiles > Terminal > Report Terminal Type> xterm-256color
git clone https://github.com/mbadolato/iTerm2-Color-Schemes.git
# iTerm import Tomorrow Night Eighties & select
git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k

vi ~/.zshrc
ZSH_THEME="powerlevel9k/powerlevel9k"
# Left
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(context dir dir_writable vcs vi_mode)
# Right
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status background_jobs time os_icon)
# Hide user name
DEFAULT_USER="your_username"
# nerd font
POWERLEVEL9K_MODE='nerdfont-complete'

iTerm User Profile Json

{
  "Ansi 3 Color" : {
    "Green Component" : 0.80000000000000004,
    "Blue Component" : 0.40000000000000002,
    "Red Component" : 1
  },
  "Tags" : [

  ],
  "Ansi 12 Color" : {
    "Green Component" : 0.59999999999999998,
    "Blue Component" : 0.80000000000000004,
    "Red Component" : 0.40000000000000002
  },
  "Ansi 7 Color" : {
    "Green Component" : 0.99997437000274658,
    "Blue Component" : 0.99999129772186279,
    "Red Component" : 1
  },
  "Ansi 8 Color" : {
    "Green Component" : 0,
    "Blue Component" : 0,
    "Red Component" : 0
  },
  "Bold Color" : {
    "Green Component" : 0.80000000000000004,
    "Blue Component" : 0.80000000000000004,
    "Red Component" : 0.80000000000000004
  },
  "Ansi 9 Color" : {
    "Green Component" : 0.46666666670000001,
    "Blue Component" : 0.47843137250000001,
    "Red Component" : 0.94901960780000005
  },
  "Horizontal Spacing" : 1,
  "Right Option Key Sends" : 0,
  "Rows" : 25,
  "Default Bookmark" : "No",
  "Cursor Guide Color" : {
    "Red Component" : 0.70213186740875244,
    "Color Space" : "sRGB",
    "Blue Component" : 1,
    "Alpha Component" : 0.25,
    "Green Component" : 0.9268307089805603
  },
  "Non-ASCII Anti Aliased" : true,
  "Use Bright Bold" : true,
  "Ansi 10 Color" : {
    "Green Component" : 0.80000000000000004,
    "Blue Component" : 0.59999999999999998,
    "Red Component" : 0.59999999999999998
  },
  "Ambiguous Double Width" : false,
  "Jobs to Ignore" : [
    "rlogin",
    "ssh",
    "slogin",
    "telnet"
  ],
  "Ansi 15 Color" : {
    "Green Component" : 0.99997437000274658,
    "Blue Component" : 0.99999129772186279,
    "Red Component" : 1
  },
  "Foreground Color" : {
    "Green Component" : 0.80000000000000004,
    "Blue Component" : 0.80000000000000004,
    "Red Component" : 0.80000000000000004
  },
  "Working Directory" : "\/Users\/rick",
  "Blinking Cursor" : false,
  "Disable Window Resizing" : true,
  "Sync Title" : false,
  "Prompt Before Closing 2" : false,
  "BM Growl" : true,
  "Command" : "",
  "Description" : "Default",
  "Mouse Reporting" : true,
  "Screen" : -1,
  "Selection Color" : {
    "Green Component" : 0.31764705882352939,
    "Blue Component" : 0.31764705882352939,
    "Red Component" : 0.31764705882352939
  },
  "Columns" : 80,
  "Idle Code" : 0,
  "Ansi 13 Color" : {
    "Green Component" : 0.59999999999999998,
    "Blue Component" : 0.80000000000000004,
    "Red Component" : 0.80000000000000004
  },
  "Custom Command" : "No",
  "ASCII Anti Aliased" : true,
  "Non Ascii Font" : "Monaco 12",
  "Vertical Spacing" : 1,
  "Use Bold Font" : true,
  "Option Key Sends" : 0,
  "Selected Text Color" : {
    "Green Component" : 0.80000000000000004,
    "Blue Component" : 0.80000000000000004,
    "Red Component" : 0.80000000000000004
  },
  "Background Color" : {
    "Green Component" : 0.1764705882352941,
    "Blue Component" : 0.1764705882352941,
    "Red Component" : 0.1764705882352941
  },
  "Character Encoding" : 4,
  "Ansi 11 Color" : {
    "Green Component" : 0.80000000000000004,
    "Blue Component" : 0.40000000000000002,
    "Red Component" : 1
  },
  "Use Italic Font" : true,
  "Unlimited Scrollback" : false,
  "Keyboard Map" : {
    "0xf700-0x260000" : {
      "Text" : "[1;6A",
      "Action" : 10
    },
    "0x37-0x40000" : {
      "Text" : "0x1f",
      "Action" : 11
    },
    "0x32-0x40000" : {
      "Text" : "0x00",
      "Action" : 11
    },
    "0xf709-0x20000" : {
      "Text" : "[17;2~",
      "Action" : 10
    },
    "0xf70c-0x20000" : {
      "Text" : "[20;2~",
      "Action" : 10
    },
    "0xf729-0x20000" : {
      "Text" : "[1;2H",
      "Action" : 10
    },
    "0xf72b-0x40000" : {
      "Text" : "[1;5F",
      "Action" : 10
    },
    "0xf705-0x20000" : {
      "Text" : "[1;2Q",
      "Action" : 10
    },
    "0xf703-0x260000" : {
      "Text" : "[1;6C",
      "Action" : 10
    },
    "0xf700-0x220000" : {
      "Text" : "[1;2A",
      "Action" : 10
    },
    "0xf701-0x280000" : {
      "Text" : "0x1b 0x1b 0x5b 0x42",
      "Action" : 11
    },
    "0x38-0x40000" : {
      "Text" : "0x7f",
      "Action" : 11
    },
    "0x33-0x40000" : {
      "Text" : "0x1b",
      "Action" : 11
    },
    "0xf703-0x220000" : {
      "Text" : "[1;2C",
      "Action" : 10
    },
    "0xf701-0x240000" : {
      "Text" : "[1;5B",
      "Action" : 10
    },
    "0xf70d-0x20000" : {
      "Text" : "[21;2~",
      "Action" : 10
    },
    "0xf702-0x260000" : {
      "Text" : "[1;6D",
      "Action" : 10
    },
    "0xf729-0x40000" : {
      "Text" : "[1;5H",
      "Action" : 10
    },
    "0xf706-0x20000" : {
      "Text" : "[1;2R",
      "Action" : 10
    },
    "0x34-0x40000" : {
      "Text" : "0x1c",
      "Action" : 11
    },
    "0xf700-0x280000" : {
      "Text" : "0x1b 0x1b 0x5b 0x41",
      "Action" : 11
    },
    "0x2d-0x40000" : {
      "Text" : "0x1f",
      "Action" : 11
    },
    "0xf70e-0x20000" : {
      "Text" : "[23;2~",
      "Action" : 10
    },
    "0xf702-0x220000" : {
      "Text" : "[1;2D",
      "Action" : 10
    },
    "0xf703-0x280000" : {
      "Text" : "0x1b 0x1b 0x5b 0x43",
      "Action" : 11
    },
    "0xf700-0x240000" : {
      "Text" : "[1;5A",
      "Action" : 10
    },
    "0xf707-0x20000" : {
      "Text" : "[1;2S",
      "Action" : 10
    },
    "0xf70a-0x20000" : {
      "Text" : "[18;2~",
      "Action" : 10
    },
    "0x35-0x40000" : {
      "Text" : "0x1d",
      "Action" : 11
    },
    "0xf70f-0x20000" : {
      "Text" : "[24;2~",
      "Action" : 10
    },
    "0xf703-0x240000" : {
      "Text" : "[1;5C",
      "Action" : 10
    },
    "0xf701-0x260000" : {
      "Text" : "[1;6B",
      "Action" : 10
    },
    "0xf702-0x280000" : {
      "Text" : "0x1b 0x1b 0x5b 0x44",
      "Action" : 11
    },
    "0xf72b-0x20000" : {
      "Text" : "[1;2F",
      "Action" : 10
    },
    "0x36-0x40000" : {
      "Text" : "0x1e",
      "Action" : 11
    },
    "0xf708-0x20000" : {
      "Text" : "[15;2~",
      "Action" : 10
    },
    "0xf701-0x220000" : {
      "Text" : "[1;2B",
      "Action" : 10
    },
    "0xf70b-0x20000" : {
      "Text" : "[19;2~",
      "Action" : 10
    },
    "0xf702-0x240000" : {
      "Text" : "[1;5D",
      "Action" : 10
    },
    "0xf704-0x20000" : {
      "Text" : "[1;2P",
      "Action" : 10
    }
  },
  "Window Type" : 0,
  "Background Image Location" : "",
  "Blur" : false,
  "Badge Color" : {
    "Red Component" : 1,
    "Color Space" : "sRGB",
    "Blue Component" : 0,
    "Alpha Component" : 0.5,
    "Green Component" : 0.1491314172744751
  },
  "Scrollback Lines" : 1000,
  "Send Code When Idle" : false,
  "Close Sessions On End" : true,
  "Terminal Type" : "xterm-256color",
  "Visual Bell" : true,
  "Flashing Bell" : false,
  "Silence Bell" : false,
  "Ansi 14 Color" : {
    "Green Component" : 0.80000000000000004,
    "Blue Component" : 0.80000000000000004,
    "Red Component" : 0.40000000000000002
  },
  "Name" : "Default",
  "Cursor Text Color" : {
    "Green Component" : 0.1764705882,
    "Blue Component" : 0.1764705882,
    "Red Component" : 0.1764705882
  },
  "Shortcut" : "",
  "Cursor Color" : {
    "Green Component" : 0.80000000000000004,
    "Blue Component" : 0.80000000000000004,
    "Red Component" : 0.80000000000000004
  },
  "Ansi 0 Color" : {
    "Green Component" : 0,
    "Blue Component" : 0,
    "Red Component" : 0
  },
  "Transparency" : 0,
  "Ansi 2 Color" : {
    "Green Component" : 0.80000000000000004,
    "Blue Component" : 0.59999999999999998,
    "Red Component" : 0.59999999999999998
  },
  "Custom Directory" : "No",
  "Ansi 4 Color" : {
    "Green Component" : 0.59999999999999998,
    "Blue Component" : 0.80000000000000004,
    "Red Component" : 0.40000000000000002
  },
  "Ansi 5 Color" : {
    "Green Component" : 0.59999999999999998,
    "Blue Component" : 0.80000000000000004,
    "Red Component" : 0.80000000000000004
  },
  "Use Non-ASCII Font" : false,
  "Ansi 6 Color" : {
    "Green Component" : 0.80000000000000004,
    "Blue Component" : 0.80000000000000004,
    "Red Component" : 0.40000000000000002
  },
  "Normal Font" : "HackNerdFontComplete-Regular 20",
  "Link Color" : {
    "Red Component" : 0,
    "Color Space" : "sRGB",
    "Blue Component" : 0.73423302173614502,
    "Alpha Component" : 1,
    "Green Component" : 0.35916060209274292
  },
  "Guid" : "064AAC1F-F746-4DB3-B730-C89F9B973E9C",
  "Ansi 1 Color" : {
    "Green Component" : 0.46666666666666667,
    "Blue Component" : 0.47843137254901957,
    "Red Component" : 0.94901960784313721
  }
}

Setting Git & GitHub with SSH

ssh-keygen -t rsa -b 4096 -C "[email protected]"
cd ~/.ssh
cat id_rsa.pub
ssh [email protected]
git config --global user.name "your_username"
git config --global user.email "[email protected]"

Categories:

Updated:

Leave a comment