博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
MacOS入门
阅读量:7256 次
发布时间:2019-06-29

本文共 3475 字,大约阅读时间需要 11 分钟。

1. 桌面操作

1.1 finder

系统默认的finder太不好用了,使用XtraFinder代替

在10.11中,还需要进行额外的配置

1.2 截图

截图也不好用,十分诡异的快捷键

  • Cmd+Shift+3: 全屏截图

  • Cmd+Shift+4: 选择截图

  • Cmd+Shift+4, Space: 窗口截图

  • 截图同时按住Ctrl, 保存到剪贴板中

推荐使用QQ的截图键:Ctrl+Cmd+A.

如果同时安装了微信,此快捷键会被微信覆盖,然而微信的截图并不好用。所以把微信的快捷键改成随便什么东西(貌似不能置空,置空是默认快捷键,还是会覆盖)

1.3 复制粘贴剪切

系统没有单一的剪切命令

使用Cmd+c, Cmd+v复制粘贴
使用Cmd+c, Cmd+Opt+v剪切粘贴

使用XtraFinder解决此问题:Cmd+x:剪切

1.4 快速切换中英文输入

系统原生输入法是不支持的,只支持Cmd+Space切换中英文

请安装第三方输入法

1.5 窗口控制

按住Opt同时点全屏可以垂直最大化

按住Shift+Opt同时点全屏可以最大化
F11显示桌面

2. shell相关

2.1 HomeBrew

使用以下命令安装

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

2.2 bash 4

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/libCPPFLAGS: -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_completionfi

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

terminal

使用iTerm

打开新标签页时保留路径
Profiles -> General -> Working Directory: Reuse previous session's directory
clipboard.png

日历

改变快捷键

使用系统配置的方法并不完美,推荐使用这个软件

里边有选项可以替换快捷键。
还可以自定义qq/wechat的发送消息快捷键
样例private.xml

WECHAT
com.tencent.xinWeChat
QQ
com.tencent.qq
Use Ctrl+Return to send message in IM
private.im.ctrl_enter
WECHAT, QQ
__KeyToKey__ KeyCode::RETURN, ModifierFlag::CONTROL_L, KeyCode::RETURN, ModifierFlag::COMMAND_L

一些shell命令差异

# macos的ln,如果目标是一个目录(目录的link)的话,则在目录中创建软链# 使用-h代替ln -sln -sh

3. 软件相关

3.1 安装cherrytree

  • 从下载源码

  • 安装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/LaunchAgentsThen to load d-bus now:  launchctl load ~/Library/LaunchAgents/org.freedesktop.dbus-session.plist

3.2 安装mysql

brew install mysql

启动mysql

mysql.server start

其他说明

We've installed your MySQL database without a root password. To secure it run:    mysql_secure_installationTo connect run:    mysql -urootTo have launchd start mysql at login:  ln -sfv /usr/local/opt/mysql/*.plist ~/Library/LaunchAgentsThen to load mysql now:  launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mysql.plistOr, if you don't want/need launchctl, you can just run:  mysql.server start

3.3 java环境

JDK

oracle官网安装
IDEA
jetbrain官网下载安装
maven

brew install maven

转载地址:http://znvdm.baihongyu.com/

你可能感兴趣的文章
Linux命令工具基础02 文件及目录管理
查看>>
Linux 安装配置maven3.0 以及搭建nexus私服
查看>>
给Select赋值 innerHTML 不兼容IE6\IE7\IE8\IE9
查看>>
JAVA中的四种引用
查看>>
盘点前 10 名的免费跨浏览器测试工具
查看>>
Asp.Net MVC5入门学习系列③
查看>>
数学图形(1.27) 花
查看>>
Orchard模块开发全接触5:深度改造前台第二部分
查看>>
令人忧虑, 不阅读的中国人
查看>>
atitit. java queue 队列体系and自定义基于数据库的队列总结o7t
查看>>
android Handler
查看>>
[转]MVC之 自定义过滤器(Filter)
查看>>
Android组件系列----Activity组件详解
查看>>
SqlDateTime overflow / SqlDateTime 溢出
查看>>
Mono 3.8发布:性能进一步改进,可伸缩性提升
查看>>
ECSHOP站内页面跳转,避免死链
查看>>
Java串口通信具体解释
查看>>
合适使用结构体
查看>>
profile bashrc bash_profile 之间的区别和联系
查看>>
java中接口的定义与实现
查看>>