Homebrew
Homebrew是Mac下的程序包管理工具,類似于ubuntu的apt-get命令。通過這個工具可以在命令行下很方便的安裝程序。Homebrew的安裝也非常簡單,只需要在命令行下輸入命令:
ruby -e “$(curl -fsSL ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
安裝時報錯:
fatal: unable to access 'https://github.com/Homebrew/brew/': Failed to connect to localhost port 1080: Connection refused
Failed during: git fetch origin master:refs/remotes/origin/master --tags --force
通過錯誤可以看出時1080這個端口被占用了
首先猜測是git設置了代理,可以通過以下命令進行查詢
git config --global http.proxy
git config --global https.proxy
然后通過以下命令進行解除
git config --global --unset http.proxy
git config --global --unset https.proxy
然后在運行命令
ruby -e “$(curl -fsSL ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
就可以安裝了
安裝后輸入brew,報錯brew: command not found
解決辦法
sudo vim .bash_profile
添加:
export PATH=/usr/local/bin:$PATH
保存,source .bash_profile使配置修改生效。
再次使用brew 命令就ok了。
安裝程序,比如node
brew install node
shell
iterm2
mac切換至Zsh命令:
chsh -s /bin/zsh
安裝oh-my-zsh,在官網(wǎng)https://ohmyz.sh/上有安裝命令:
$ sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
配置oh-my-zsh的主題和插件,只需要打開它的配置文件,修改里面的配置就可以了
命令:~ open .zshrc
主題在https://github.com/robbyrussell/oh-my-zsh/wiki/Themes這里可以找到
https://github.com/robbyrussell/oh-my-zsh/wiki/plugins這里有非常豐富的插件,想要添加直接加到配置文件里就可以了
Alfred3
在Mac有一個非常好用的搜索工具-spotlight,點擊菜單欄的右上角的??按鈕它就出來了(快捷鍵command+space)。在Windows上雖然也有類似的搜索工具-Everything,但效率比起spotlight就差太多了,spotlight能幾乎在輸入完成的同時就檢索到結果,而Everything就需要等好久。
雖然spotlight已經(jīng)可以滿足平常的搜索工作了,不過這里還是要介紹另一個神器Alfred3,它不僅能完成spotlight所能完成的工作,還具有其他強大的功能。
安裝Alfred3,可以到它的官網(wǎng)https://www.alfredapp.com/下載安裝,也可以通過brew安裝,下面就演示一下brew安裝。
輸入命令:
brew install alfred
時間有點久,不知道是不是網(wǎng)絡的原因,不過還是裝完了
https://github.com/zenorocha/alfred-workflows
編輯器Sublime Text
安裝命令:
brew cask install sublime-text
也可以通過在官網(wǎng)https://www.sublimetext.com/下載安裝,不同的是通過brew安裝不需要配置環(huán)境變量
export PATH=${PATH}:/Applications/Sublime\Text.app/Contents/SharedSupport/bin
多光標編輯
按住command鍵,在點擊到需要編輯的地方就可以進行多光標編輯了
Goto anything
按住command+p,就可以打開Goto anything功能,在打開的文件或文件夾中進行查找,如果打開的是代碼按下@可以查看代碼的大綱,如圖所示

插件
Sublime有非常豐富的插件庫,利用這些插件庫可以構建出一個功能非常強大的編輯器,甚至是可以把它當作是IDE工具。
插件庫的網(wǎng)址:https://packagecontrol.io/
Apk反編譯工具
1.ApkTool
2.Dextojar
3.jadx 網(wǎng)址:https://github.com/skylot/jadx
安裝方法網(wǎng)頁上有詳細介紹
個人博客搭建
https://cn.wordpress.org/
https://www.jekyll.com.cn/
http://octopress.org/
https://ghost.org/
http://www.ghostchina.com/
https://hexo.io/zh-cn/ (推薦)
開發(fā)論壇
https://blog.csdn.net/github_35957188/article/details/76218953
https://blog.csdn.net/Linjingke32/article/details/79875523
筆記
gitbook
PPT制作工具
1.impress.js
http://www.itdecent.cn/p/388843ed117b
https://github.com/impress/impress.js/wiki/Examples-and-demos
2.strut
http://strut.io/
它是一款基于impress.js的在線編輯器,給impress.js提供了可視化編輯界面,降低了impress.js的使用難度
3.reveal.js
https://github.com/hakimel/reveal.js
https://slides.com/
項目文檔生成器
1.mkdocs https://www.mkdocs.org/
2.ranetodocs http://raneto.com/