macOS初始化

安装homebrew

1
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

安装第三方软件权限问题

1
sudo spctl --master disable

配置Git

1
2
3
4
5
git config --global user.name "mission-young"
git config --global user.email "yuanfangsee@pku.edu.cn"
ssh-keygen -t rsa -C "yuanfangsee@pku.edu.cn"
cat ~/.ssh/id_rsa.pub
## paste it to github

配置开发环境

  • Hexo博客
  • Qt
  • root
    1
    brew install root
  • tmux
    1
    brew install tmux
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    # Send prefix
    set-option -g prefix C-a
    unbind-key C-a
    bind-key C-a send-prefix
    # Use Alt-arrow keys to switch panes
    bind -n M-Left select-pane -L
    bind -n M-Right select-pane -R
    bind -n M-Up select-pane -U
    bind -n M-Down select-pane -D
    # Shift arrow to switch windows
    bind -n S-Left previous-window
    bind -n S-Right next-window
    # Mouse mode
    set -g mouse on

    # Set easier window split keys
    bind-key v split-window -h
    bind-key h split-window -v
    # Easy config reload
    bind-key r source-file ~/.tmux.conf \; display-message "tmux.conf reloaded"
  • [geant4]
  • ssh
    1
    echo 'alias sshribll="ssh -Y -p 2727 wuchenguang@162.105.151.64"' >> ~/.zshrc
  • xquartz
    1
    brew cask install xquartz