macOS上のより使いやすい端末

1898 ワード

  • iTerm 2をインストールします.ダウンロードアドレスhttps://iterm2.com/downloads/stable/latest
  • Nerd Fontsをインストールします.ダウンロードアドレスhttps://github.com/ryanoasis/nerd-fonts/releases/download/v2.0.0/Hack.zip
  • はSSH keyを生成する.コマンドssh-keygen
  • は、Githubアカウントに公開鍵をアップロードする.cat ~/.ssh/id_rsa.pubの結果をGithubアカウントのSSH keysの
  • にアップロード
  • 設定git@sshを使用してGithubにアクセスします.編集~/.ssh/config次の内容
  • を追加
    Host github.com
        User git
        Hostname github.com
        Port 22
        Proxycommand nc -X 5 -x 127.0.0.1:6153 %h %p
  • ssh [email protected]を使用して、設定が正しいかどうか、およびエージェントが正常に動作しているかどうかを確認します.
  • 設定git@httpおよびgit@httpsのエージェント、コマンドを実行します.
  • git config --global http.proxy "socks5://127.0.0.1:6153"
    git config --global https.proxy "socks5://127.0.0.1:6153"
  • Homebrewをインストールします.インストールコマンド/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Oh My Zshをインストールします.インストールコマンドsh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
  • zplugをインストールします.インストールコマンドcurl -sL --proto-redir -all,https https://raw.githubusercontent.com/zplug/installer/master/installer.zsh | zsh
  • deinをインストール.vimはnvimにあげます.インストールコマンドcurl https://raw.githubusercontent.com/Shougo/dein.vim/master/bin/installer.sh > installer.sh; sh ./installer.sh /.local/share/dein
  • autojumpをインストールします.インストールコマンドbrew install autojump、さらに[ -f /usr/local/etc/profile.d/autojump.sh ] && . /usr/local/etc/profile.d/autojump.sh || echo "Failed to load the >> autojump < .zshrc
  • fzfを り けます.インストールコマンドbrew install fzf; $(brew --prefix)/opt/fzf/install