Mac码农神兵利器

2018-10-05  本文已影响0人  从心_出发

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,在官网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已经可以满足平常的搜索工作了,不过这里还是要介绍另一个神器Alfred3,它不仅能完成spotlight所能完成的工作,还具有其他强大的功能。
安装Alfred3,可以到它的官网https://www.alfredapp.com/下载安装,也可以通过brew安装,下面就演示一下brew安装。
输入命令:

brew install alfred

时间有点久,不知道是不是网络的原因,不过还是装完了

https://github.com/zenorocha/alfred-workflows

编辑器Sublime Text

安装命令:

brew cask install sublime-text

也可以通过在官网https://www.sublimetext.com/下载安装,不同的是通过brew安装不需要配置环境变量

export  PATH=${PATH}:/Applications/Sublime\Text.app/Contents/SharedSupport/bin

多光标编辑

按住command键,在点击到需要编辑的地方就可以进行多光标编辑了

Goto anything

按住command+p,就可以打开Goto anything功能,在打开的文件或文件夹中进行查找,如果打开的是代码按下@可以查看代码的大纲,如图所示


屏幕快照 2018-10-05 上午10.00.29.png

插件

Sublime有非常丰富的插件库,利用这些插件库可以构建出一个功能非常强大的编辑器,甚至是可以把它当作是IDE工具。
插件库的网址:https://packagecontrol.io/

Apk反编译工具

1.ApkTool
2.Dextojar
3.jadx 网址:https://github.com/skylot/jadx
安装方法网页上有详细介绍

个人博客搭建

https://cn.wordpress.org/
https://www.jekyll.com.cn/
http://octopress.org/
https://ghost.org/
http://www.ghostchina.com/
https://hexo.io/zh-cn/ (推荐)

开发论坛

https://community.nodebb.org/

https://blog.csdn.net/github_35957188/article/details/76218953
https://blog.csdn.net/Linjingke32/article/details/79875523

笔记

gitbook

PPT制作工具

1.impress.js
https://www.jianshu.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/

项目文档生成器

1.mkdocs https://www.mkdocs.org/
2.ranetodocs http://raneto.com/

上一篇下一篇

猜你喜欢

热点阅读