[Notes] My develop settings when reinstall

Record my development environment

Install Homebrew

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

Install develop tools

brew install --cask google-chrome
brew install --cask visual-studio-code
brew install --cask iterm2
brew install --cask docker
brew tap homebrew/cask-fonts
brew install --cask font-hack-nerd-font
brew install --cask font-fira-code
brew install zsh
brew install pyenv
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)"

Setting zsh theme & environment

# Preferences > Profiles > Terminal > Report Terminal Type> xterm-256color
git clone https://github.com/dracula/iterm.git
# iTerm import Dracula & select
git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k

vi ~/.zshrc

# Pyenv
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"

if command -v pyenv 1>/dev/null 2>&1; then
  eval "$(pyenv init -)"
fi

# Turn off Insecure completion-dependent directories detected
ZSH_DISABLE_COMPFIX="true"

# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
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="rick"
# nerd font
POWERLEVEL9K_MODE='nerdfont-complete'

iTerm User Profile Json

{
  "Ansi 3 Color": {
    "Green Component": 0.80000000000000004,
    "Red Component": 1,
    "Blue Component": 0.40000000000000002
  },
  "Tags": [],
  "Ansi 12 Color": {
    "Green Component": 0.59999999999999998,
    "Red Component": 0.40000000000000002,
    "Blue Component": 0.80000000000000004
  },
  "Ansi 7 Color": {
    "Green Component": 0.99997437000274658,
    "Red Component": 1,
    "Blue Component": 0.99999129772186279
  },
  "Ansi 8 Color": {
    "Green Component": 0,
    "Red Component": 0,
    "Blue Component": 0
  },
  "Bold Color": {
    "Green Component": 0.80000000000000004,
    "Red Component": 0.80000000000000004,
    "Blue Component": 0.80000000000000004
  },
  "Ansi 9 Color": {
    "Green Component": 0.46666666670000001,
    "Red Component": 0.94901960780000005,
    "Blue Component": 0.47843137250000001
  },
  "Custom Directory": "No",
  "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,
    "Red Component": 0.59999999999999998,
    "Blue Component": 0.59999999999999998
  },
  "Ambiguous Double Width": false,
  "Jobs to Ignore": ["rlogin", "ssh", "slogin", "telnet"],
  "Show Status Bar": true,
  "Ansi 15 Color": {
    "Green Component": 0.99997437000274658,
    "Red Component": 1,
    "Blue Component": 0.99999129772186279
  },
  "Foreground Color": {
    "Green Component": 0.80000000000000004,
    "Red Component": 0.80000000000000004,
    "Blue 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,
    "Red Component": 0.31764705882352939,
    "Blue Component": 0.31764705882352939
  },
  "Columns": 80,
  "Idle Code": 0,
  "Ansi 13 Color": {
    "Green Component": 0.59999999999999998,
    "Red Component": 0.80000000000000004,
    "Blue 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,
    "Red Component": 0.80000000000000004,
    "Blue Component": 0.80000000000000004
  },
  "Background Color": {
    "Green Component": 0.1764705882352941,
    "Red Component": 0.1764705882352941,
    "Blue Component": 0.1764705882352941
  },
  "Character Encoding": 4,
  "Ansi 11 Color": {
    "Green Component": 0.80000000000000004,
    "Red Component": 1,
    "Blue Component": 0.40000000000000002
  },
  "Use Italic Font": true,
  "Unlimited Scrollback": false,
  "Keyboard Map": {
    "0xf700-0x260000": {
      "Action": 10,
      "Text": "[1;6A"
    },
    "0x37-0x40000": {
      "Action": 11,
      "Text": "0x1f"
    },
    "0x32-0x40000": {
      "Action": 11,
      "Text": "0x00"
    },
    "0xf709-0x20000": {
      "Action": 10,
      "Text": "[17;2~"
    },
    "0xf70c-0x20000": {
      "Action": 10,
      "Text": "[20;2~"
    },
    "0xf729-0x20000": {
      "Action": 10,
      "Text": "[1;2H"
    },
    "0xf72b-0x40000": {
      "Action": 10,
      "Text": "[1;5F"
    },
    "0xf705-0x20000": {
      "Action": 10,
      "Text": "[1;2Q"
    },
    "0xf703-0x260000": {
      "Action": 10,
      "Text": "[1;6C"
    },
    "0xf700-0x220000": {
      "Action": 10,
      "Text": "[1;2A"
    },
    "0xf701-0x280000": {
      "Action": 11,
      "Text": "0x1b 0x1b 0x5b 0x42"
    },
    "0x38-0x40000": {
      "Action": 11,
      "Text": "0x7f"
    },
    "0x33-0x40000": {
      "Action": 11,
      "Text": "0x1b"
    },
    "0xf703-0x220000": {
      "Action": 10,
      "Text": "[1;2C"
    },
    "0xf701-0x240000": {
      "Action": 10,
      "Text": "[1;5B"
    },
    "0xf70d-0x20000": {
      "Action": 10,
      "Text": "[21;2~"
    },
    "0xf702-0x260000": {
      "Action": 10,
      "Text": "[1;6D"
    },
    "0xf729-0x40000": {
      "Action": 10,
      "Text": "[1;5H"
    },
    "0xf706-0x20000": {
      "Action": 10,
      "Text": "[1;2R"
    },
    "0x34-0x40000": {
      "Action": 11,
      "Text": "0x1c"
    },
    "0xf700-0x280000": {
      "Action": 11,
      "Text": "0x1b 0x1b 0x5b 0x41"
    },
    "0x2d-0x40000": {
      "Action": 11,
      "Text": "0x1f"
    },
    "0xf70e-0x20000": {
      "Action": 10,
      "Text": "[23;2~"
    },
    "0xf702-0x220000": {
      "Action": 10,
      "Text": "[1;2D"
    },
    "0xf703-0x280000": {
      "Action": 11,
      "Text": "0x1b 0x1b 0x5b 0x43"
    },
    "0xf700-0x240000": {
      "Action": 10,
      "Text": "[1;5A"
    },
    "0xf707-0x20000": {
      "Action": 10,
      "Text": "[1;2S"
    },
    "0xf70a-0x20000": {
      "Action": 10,
      "Text": "[18;2~"
    },
    "0x35-0x40000": {
      "Action": 11,
      "Text": "0x1d"
    },
    "0xf70f-0x20000": {
      "Action": 10,
      "Text": "[24;2~"
    },
    "0xf703-0x240000": {
      "Action": 10,
      "Text": "[1;5C"
    },
    "0xf701-0x260000": {
      "Action": 10,
      "Text": "[1;6B"
    },
    "0xf702-0x280000": {
      "Action": 11,
      "Text": "0x1b 0x1b 0x5b 0x44"
    },
    "0xf72b-0x20000": {
      "Action": 10,
      "Text": "[1;2F"
    },
    "0x36-0x40000": {
      "Action": 11,
      "Text": "0x1e"
    },
    "0xf708-0x20000": {
      "Action": 10,
      "Text": "[15;2~"
    },
    "0xf701-0x220000": {
      "Action": 10,
      "Text": "[1;2B"
    },
    "0xf70b-0x20000": {
      "Action": 10,
      "Text": "[19;2~"
    },
    "0xf702-0x240000": {
      "Action": 10,
      "Text": "[1;5D"
    },
    "0xf704-0x20000": {
      "Action": 10,
      "Text": "[1;2P"
    }
  },
  "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,
  "Status Bar Layout": {
    "components": [
      {
        "class": "iTermStatusBarCPUUtilizationComponent",
        "configuration": {
          "knobs": {
            "base: priority": 5,
            "base: compression resistance": 1
          },
          "layout advanced configuration dictionary value": {
            "auto-rainbow style": 0,
            "algorithm": 0,
            "remove empty components": false
          }
        }
      },
      {
        "class": "iTermStatusBarMemoryUtilizationComponent",
        "configuration": {
          "knobs": {
            "base: priority": 5,
            "base: compression resistance": 1
          },
          "layout advanced configuration dictionary value": {
            "auto-rainbow style": 0,
            "algorithm": 0,
            "remove empty components": false
          }
        }
      },
      {
        "class": "iTermStatusBarSearchFieldComponent",
        "configuration": {
          "knobs": {
            "base: priority": 5,
            "base: compression resistance": 1
          },
          "layout advanced configuration dictionary value": {
            "auto-rainbow style": 0,
            "algorithm": 0,
            "remove empty components": false
          }
        }
      }
    ],
    "advanced configuration": {
      "remove empty components": false,
      "font": ".AppleSystemUIFont 12",
      "algorithm": 0,
      "auto-rainbow style": 0
    }
  },
  "Silence Bell": false,
  "Ansi 14 Color": {
    "Green Component": 0.80000000000000004,
    "Red Component": 0.40000000000000002,
    "Blue Component": 0.80000000000000004
  },
  "Name": "Default",
  "Cursor Text Color": {
    "Green Component": 0.1764705882,
    "Red Component": 0.1764705882,
    "Blue Component": 0.1764705882
  },
  "Shortcut": "",
  "Cursor Color": {
    "Green Component": 0.80000000000000004,
    "Red Component": 0.80000000000000004,
    "Blue Component": 0.80000000000000004
  },
  "Transparency": 0,
  "Ansi 1 Color": {
    "Green Component": 0.46666666666666667,
    "Red Component": 0.94901960784313721,
    "Blue Component": 0.47843137254901957
  },
  "Ansi 0 Color": {
    "Green Component": 0,
    "Red Component": 0,
    "Blue Component": 0
  },
  "Horizontal Spacing": 1,
  "Ansi 4 Color": {
    "Green Component": 0.59999999999999998,
    "Red Component": 0.40000000000000002,
    "Blue Component": 0.80000000000000004
  },
  "Ansi 5 Color": {
    "Green Component": 0.59999999999999998,
    "Red Component": 0.80000000000000004,
    "Blue Component": 0.80000000000000004
  },
  "Use Non-ASCII Font": false,
  "Ansi 6 Color": {
    "Green Component": 0.80000000000000004,
    "Red Component": 0.40000000000000002,
    "Blue Component": 0.80000000000000004
  },
  "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 2 Color": {
    "Green Component": 0.80000000000000004,
    "Red Component": 0.59999999999999998,
    "Blue Component": 0.59999999999999998
  }
}

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