Homebrew
Homebrew是Mac下的程序包管理工具,類似于ubuntu的apt-get命令廷支。通過這個(gè)工具可以在命令行下很方便的安裝程序惹想。Homebrew的安裝也非常簡(jiǎn)單,只需要在命令行下輸入命令:
ruby -e “$(curl -fsSL ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
安裝時(shí)報(bào)錯(cuò):
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
通過錯(cuò)誤可以看出時(shí)1080這個(gè)端口被占用了
首先猜測(cè)是git設(shè)置了代理础浮,可以通過以下命令進(jìn)行查詢
git config --global http.proxy
git config --global https.proxy
然后通過以下命令進(jìn)行解除
git config --global --unset http.proxy
git config --global --unset https.proxy
然后在運(yùn)行命令
ruby -e “$(curl -fsSL ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
就可以安裝了
安裝后輸入brew,報(bào)錯(cuò)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有一個(gè)非常好用的搜索工具-spotlight,點(diǎn)擊菜單欄的右上角的??按鈕它就出來了(快捷鍵command+space)熔吗。在Windows上雖然也有類似的搜索工具-Everything辆床,但效率比起spotlight就差太多了,spotlight能幾乎在輸入完成的同時(shí)就檢索到結(jié)果桅狠,而Everything就需要等好久讼载。
雖然spotlight已經(jīng)可以滿足平常的搜索工作了,不過這里還是要介紹另一個(gè)神器Alfred3中跌,它不僅能完成spotlight所能完成的工作咨堤,還具有其他強(qiáng)大的功能。
安裝Alfred3漩符,可以到它的官網(wǎng)https://www.alfredapp.com/下載安裝一喘,也可以通過brew安裝,下面就演示一下brew安裝陨仅。
輸入命令:
brew install alfred
時(shí)間有點(diǎn)久津滞,不知道是不是網(wǎng)絡(luò)的原因,不過還是裝完了
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
多光標(biāo)編輯
按住command鍵,在點(diǎn)擊到需要編輯的地方就可以進(jìn)行多光標(biāo)編輯了
Goto anything
按住command+p咪鲜,就可以打開Goto anything功能狐赡,在打開的文件或文件夾中進(jìn)行查找,如果打開的是代碼按下@可以查看代碼的大綱疟丙,如圖所示
插件
Sublime有非常豐富的插件庫颖侄,利用這些插件庫可以構(gòu)建出一個(gè)功能非常強(qiáng)大的編輯器鸟雏,甚至是可以把它當(dāng)作是IDE工具。
插件庫的網(wǎng)址:https://packagecontrol.io/
Apk反編譯工具
1.ApkTool
2.Dextojar
3.jadx 網(wǎng)址:https://github.com/skylot/jadx
安裝方法網(wǎng)頁上有詳細(xì)介紹
個(gè)人博客搭建
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.reibang.com/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/
項(xiàng)目文檔生成器
1.mkdocs https://www.mkdocs.org/
2.ranetodocs http://raneto.com/