[TIL] 如何快速重置上手習慣的 MacOSX 環境

栏目: 编程工具 · 发布时间: 5年前

内容简介:就在今年情人節,整台筆電就這樣爆炸了。 (霹靂星球….) 整個電池忽然無法充電,導致我只能盡快的麻煩公司的同事借來一台備用電腦。 但是整個使用習慣實在很痛苦,導致還是開了一個新的使用者將所有常用的設定都恢服。這裡快速紀錄一下,我做了哪些事情。有興趣的人也可以參考我的設定。先快速裝幾個需要的工具

摘要

就在今年情人節,整台筆電就這樣爆炸了。 (霹靂星球….) 整個電池忽然無法充電,導致我只能盡快的麻煩公司的同事借來一台備用電腦。 但是整個使用習慣實在很痛苦,導致還是開了一個新的使用者將所有常用的設定都恢服。

這裡快速紀錄一下,我做了哪些事情。有興趣的人也可以參考我的設定。

基礎開發環境

先快速裝幾個需要的工具

  • Homebrew 列幾個會用的
    • vim
      git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
      
    • go
    • zsh (等等會提到)
  • VSCode (離不開了),順便列一下最少需要的 plugin
    • Gitlens 基本上懶得打 git 或是查資料用
    • Go 這不用問
    • Run vscode from your terminal https://code.visualstudio.com/docs/setup/mac
  • typora 寫部落格用的工具 ,之前有寫過推廣文
  • PasteApp 方便你複製貼上的工具,免費七天。買下去你絕對不會後悔的。

順手的東西 zsh + oh-my-zsh

這邊簡單多了,參考這篇好文章 “超簡單!十分鐘打造漂亮又好用的 zsh command line 環境” ,條列出我有用到的:

  • iTerm2

    brew tap caskroom/cask
    brew cask instal iterm2
    iTerm2-Color-Schemes 
    
  • powerline font

    brew tap caskroom/fonts
    brew cask install font-sourcecodepro-nerd-font
    
  • ZSH

    • brew install zsh
  • Install oh-my-zsh

    • sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
  • Install zsh integration for iTerm2

    curl -L https://iterm2.com/shell_integration/zsh \ -o ~/.iterm2_shell_integration.zsh
    
  • Install PowerLevel9k

    • git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k
  • 復原 zsh configuration

    • https://github.com/kkdai/zsh
    • 有些用不到的可以先不要
      • miniconda
      • kubetcl
  • 讓 vscode terminal 顯示 zsh http://www.evanlin.com/til-zsh/

    • user.setting (cmd+,)
  • "terminal.integrated.shell.osx": "zsh",
    "terminal.integrated.cursorBlinking": true,
    "terminal.integrated.fontSize": 12,

電腦電池壞掉我學到什麼

  • 就算是 blog 文章還沒寫文,每天進度也要放上 github
    • 原本只有 local commit 忘記 push
  • “A git push a day, keep your computer safe anyway”

Reference

  • https://medium.com/statementdog-engineering/prettify-your-zsh-command-line-prompt-3ca2acc967f
  • https://github.com/kkdai/zsh

以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

An Introduction to the Analysis of Algorithms

An Introduction to the Analysis of Algorithms

Robert Sedgewick、Philippe Flajolet / Addison-Wesley Professional / 1995-12-10 / CAD 67.99

This book is a thorough overview of the primary techniques and models used in the mathematical analysis of algorithms. The first half of the book draws upon classical mathematical material from discre......一起来看看 《An Introduction to the Analysis of Algorithms》 这本书的介绍吧!

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

URL 编码/解码
URL 编码/解码

URL 编码/解码