系统默认的finder太很差用了,使用XtraFinder代替
https://www.trankynam.com/xtrafinder/
在10.11中,还须要进行额外的配置
https://www.trankynam.com/xtrafinder/sip.htmlhtml
截图也很差用,十分诡异的快捷键java
Cmd+Shift+3: 全屏截图python
Cmd+Shift+4: 选择截图mysql
Cmd+Shift+4, Space: 窗口截图git
截图同时按住Ctrl, 保存到剪贴板中github
推荐使用QQ的截图键:Ctrl+Cmd+A.
若是同时安装了微信,此快捷键会被微信覆盖,然而微信的截图并很差用。因此把微信的快捷键改为随便什么东西(貌似不能置空,置空是默认快捷键,仍是会覆盖)sql
系统没有单一的剪切命令
使用Cmd+c, Cmd+v复制粘贴
使用Cmd+c, Cmd+Opt+v剪切粘贴shell
使用XtraFinder解决此问题:Cmd+x:剪切macos
系统原生输入法是不支持的,只支持Cmd+Space切换中英文
请安装第三方输入法ruby
按住Opt同时点全屏能够垂直最大化
按住Shift+Opt同时点全屏能够最大化
F11显示桌面
http://brew.sh/
使用如下命令安装
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install bash
This formula is keg-only, which means it was not symlinked into /usr/local.
OS X provides the BSD libedit library, which shadows libreadline.
In order to prevent conflicts when programs look for libreadline we are defaulting this GNU Readline installation to keg-only.
Generally there are no consequences of this for you. If you build your own software and it requires this formula, you'll need to add to your build variables:
LDFLAGS: -L/usr/local/opt/readline/lib CPPFLAGS: -I/usr/local/opt/readline/include
In order to use this build of bash as your login shell, it must be added to /etc/shells.
切换bash版本
chsh -s /usr/local/bin/bash
安装bash补全
brew install bash-completion
Add the following lines to your ~/.bash_profile:
if [ -f $(brew --prefix)/etc/bash_completion ]; then . $(brew --prefix)/etc/bash_completion fi
Homebrew's own bash completion script has been installed to
/usr/local/etc/bash_completion.d
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
使用iTerm
打开新标签页时保留路径
Profiles -> General -> Working Directory: Reuse previous session's directory
https://www.mowglii.com/itsycal/
使用系统配置的方法并不完美,推荐使用这个软件
https://pqrs.org/osx/karabiner/index.html.en
里边有选项能够替换快捷键。
还能够自定义qq/wechat的发送消息快捷键
样例private.xml
<?xml version="1.0"?> <root> <appdef> <appname>WECHAT</appname> <euqal>com.tencent.xinWeChat</euqal> </appdef> <appdef> <appname>QQ</appname> <equal>com.tencent.qq</equal> </appdef> <item> <name>Use Ctrl+Return to send message in IM</name> <identifier>private.im.ctrl_enter</identifier> <only>WECHAT, QQ</only> <autogen> __KeyToKey__ KeyCode::RETURN, ModifierFlag::CONTROL_L, KeyCode::RETURN, ModifierFlag::COMMAND_L </autogen> </item> </root>
# macos的ln,若是目标是一个目录(目录的link)的话,则在目录中建立软链 # 使用-h代替 ln -s ln -sh
http://bt27uk.blogspot.jp/2014/07/getting-cherry-tree-installed-on-mac.html
安装pygtk:
brew install pygtk pygtksourceview
安装dbus
brew install dbus
brew install dbus-glib
/usr/local/bin/pip install dbus-python
启动dbus
launchctl load /usr/local/opt/d-bus/org.freedesktop.dbus-session.plist
强制使用brew版本的python
edit cherrytree
#!/usr/bin/env python2 ->
#!/usr/local/bin/python2.7
To have launchd start d-bus at login: ln -sfv /usr/local/opt/d-bus/*.plist ~/Library/LaunchAgents Then to load d-bus now: launchctl load ~/Library/LaunchAgents/org.freedesktop.dbus-session.plist
brew install mysql
启动mysql
mysql.server start
其余说明
We've installed your MySQL database without a root password. To secure it run: mysql_secure_installation To connect run: mysql -uroot To have launchd start mysql at login: ln -sfv /usr/local/opt/mysql/*.plist ~/Library/LaunchAgents Then to load mysql now: launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist Or, if you don't want/need launchctl, you can just run: mysql.server start
JDK
oracle官网安装
IDEA
jetbrain官网下载安装
maven
brew install maven