外接键盘

常用快捷键设置

Command-Z 撤消 
Command-X 剪切  
Command-C 拷贝(Copy)  
Command-V 粘贴  
Command-A 全选(All)
Command-F 查找...(Find) 
待定?
Command-S 保存(Save)  

其他快捷键

  • command+L 定位到地址栏

  • ctrl+Tab 切换到下一个标签

  • command+2 切换到第2个标签

  • command+左右 定位到行首与行尾

  • command+上下 定位到文件头与文件尾

  • option(映射到alt上,又交换到win上)+左右 定位到上一个与下一个单词末尾

  • 参考https://jingyan.baidu.com/article/08b6a591aac09614a909224f.html

  • option(alt)+command 光标变为十字型,拖动鼠标可以按列选中

安装软件

clion chrome

  • 安装完成把图标拖到文件夹上才OK
  • 如何查找软件安装路径:
    • clion安装路径: /Applications/CLion.app/Contents/bin/clion.vmoptions
    • 方法: 右键->选项->在访达中显示;右键程序图标->显示包内容
  • 破解软件: https://www.jianshu.com/p/f404994e2843
  • 使用homebrew安装的gcc、g++编译器
    • cc、gcc、g++、CC的区别概括(在unix系统中cc为c compiler,在linux系统中cc一般为指向gcc的符号链接)
    • 编译变量名称(CC CXX)
    • clion-preferance-toolchians,设置compiler
    • mac不能修改/usr/bin下的文件,不过可以通过alias设置相应的编译命令所使用的版本,以及通过export环境变量的方式设置编译器变量值
bin $pwd
/usr/bin
cbin $ll c++ cc gcc g++ cpp
-rwxr-xr-x 1 root wheel 18288 5 30 06:32 cpp
-rwxr-xr-x 1 root wheel 18288 5 30 06:32 g++
-rwxr-xr-x 1 root wheel 18288 5 30 06:32 gcc
lrwxr-xr-x 1 root wheel 7 7 18 18:45 c++ -> clang++
lrwxr-xr-x 1 root wheel 5 7 18 18:45 cc -> clang bin $./g++ -v
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 9.1.0 (clang-902.0.39.2)
Target: x86_64-apple-darwin17.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin ~ $cat .bash_profile
......
export CC=/usr/local/Cellar/gcc/8.2.0/bin/gcc-8
export CXX=/usr/local/Cellar/gcc/8.2.0/bin/g++-8 export PATH="/usr/local/Cellar/gcc/8.2.0/bin/:$PATH"
alias gcc="gcc-8"
alias g++="g++-8"
alias c++="c++-8"
alias cpp="cpp-8"
......

xmind

- 解决提示文件已损坏
- sudo spctl --master-disable 命令,参考: http://www.carrotchou.blog/6539.html
- 下载 XMind: ZEN

clion 配置

IDEA

  • IDEA快捷键(clion)

    • command+shift+f 整个项目内搜索内容
    • command+o 整个项目内搜索类
    • VCS-Git-Compare with Branch
    • 右键+annotate 显示作者
    • alt(option)+comman+b(左键) 显示实现类
  • IDEA配置

  • mvn命令

    • mvn install -Dmaven.test.skip=true
    • mvn package -Dmaven.test.skip=true
    • mvn clean
    • 配置文件 ~/.m2/settings.xml
    • 下载位置 .m2/repository

iterm2 配置

  • iterm2,用户环境变量配置如下:
~ $pwd
/var/root
~ $cat .bash_profile
#enables colorin the terminal bash shell export
export CLICOLOR=1 #setsup thecolor scheme for list export
export LSCOLORS=gxfxcxdxbxegedabagacad #sets up theprompt color (currently a green similar to linux terminal)
export PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;36m\]\w\[\033[00m\]\$ '
#enables colorfor iTerm
export TERM=xterm-256color alias wk="cd /Users/admin/wangzhiyi"
alias ll="ls -lrta" find_git_branch () { local dir=. head until [ "$dir" -ef / ]; do if [ -f "$dir/.git/HEAD" ]; then head=$(< "$dir/.git/HEAD") if [[ $head = ref:\ refs/heads/* ]]; then git_branch=" (${head#*/*/})" elif [[ $head != '' ]]; then git_branch=" → (detached)" else git_branch=" → (unknow)" fi return fi dir="../$dir" done git_branch='' } PROMPT_COMMAND="find_git_branch; $PROMPT_COMMAND" black=$'\[\e[1;30m\]' red=$'\[\e[1;31m\]' green=$'\[\e[1;32m\]' yellow=$'\[\e[1;33m\]' blue=$'\[\e[1;34m\]' magenta=$'\[\e[1;35m\]' cyan=$'\[\e[1;36m\]' white=$'\[\e[1;37m\]' normal=$'\[\e[m\]' PS1="\[\033[0;31m\]\u \[\033[00;36m\]\W$yellow\$git_branch \[\033[0;33m\]$\[\e[1;37m\]"
  • 普通用户设置.bash_profile后,打开item2,其配置生效;但sudo su到root下,即使root用户目录下编写了.bash_profile,但却是不生效

    • sudo su 登录到root后会使用当前的环境
    • sudo su 登录到root后,passwd root重新设置密码给su - root登录使用
    • su - root并输入 新密码 后 会加载/etc/bashrc(把原.bash_profile内容追加在这个文件里)
    • 但sudo su的密码没有改变
  • sudo su 与 su - root 的区别?

iterm2使用

访问trello

  • 申请vps服务器
  • 在vps服务器上搭建ss服务(ip+port)
  • ss客户端填写对应的ip+port+passwd
  • ss客户端选择PAC模式(自动识别)

待补充...

linux/windows转mac的习惯设置的更多相关文章

  1. Location of Docker images in all Operating Systems (Linux, Windows, Redhat, Mac OS X)

    原文:http://www.scmgalaxy.com/tutorials/location-of-dockers-images-in-all-operating-systems/ Location ...

  2. 设置java.library.path的值(Mac/Linux/Windows)

    说明:网上基本针对这个值的设置分为两面,Windows派和Linux派,Windows的不说,Linux下只会说设置LD_LIBRARY_PATH即可,但这种方式在Java 8是一个错误的设置,尤其是 ...

  3. 操作系统Unix、Windows、Mac OS、Linux的故事

    电脑,计算机已经成为我们生活中必不可少的一部分.无论是大型的超级计算机,还是手机般小巧的终端设备,都跑着一个操作系统.正是这些操作系统,让那些硬件和芯片得意组合起来,让那些软件得以运行,让我们的世界在 ...

  4. Unix、Windows、Mac OS、Linux系统故事

    我们熟知的操作系统大概都是windows系列,近年来Apple的成功,让MacOS也逐渐走进普通用户.在服务器领域,恐怕Linux是无人不知无人不晓.他们都是操作系统,也在自己的领域里独领风骚.这都还 ...

  5. [转]操作系统Unix、Windows、Mac OS、Linux的故事

    [写得很江湖气,可惜找不到原作者了] 文章转自:http://blog.csdn.net/wenmingchan/article/details/49925379 http://www.jb51.ne ...

  6. 【转】操作系统Unix、Windows、Mac OS、Linux的故事

    电脑,计算机已经成为我们生活中必不可少的一部分.无论是大型的超级计算机,还是手机般小巧的终端设备,都跑着一个操作系统.正是这些操作系统,让那些硬件和芯片得意组合起来,让那些软件得以运行,让我们的世界在 ...

  7. Linux、Windows 和 Mac 中的换行符对比

    原文地址:Linux.Windows 和 Mac 中的换行符对比 博客地址:http://www.moonxy.com 一.前言 经常使用 Window.Linux 等不同操作系统的开发者,在处理文本 ...

  8. 如何选择一款适合自己操作系统、Windows、Mac还是Linux?

    如何选择一款适合自己操作系统.Windows.Mac还是Linux? 作者:我们都很努力着 简介:电脑已经逐渐离不开我们生活,但是如何选择一个我们最佳,最适合的电脑操作系统就成了一些困难选择人士的一个 ...

  9. golang 在 Mac , Linux , Windows 下交叉编译详解

    一. 前言 Golang 支持交叉编译, 在一个平台上生成然后再另外一个平台去执行. 而且编译的工具[build]这个工具是Golang 内置的,不需要你去下载第三方的包啥的,贼方便. 二. 交叉编译 ...

随机推荐

  1. “数据上帝” Jeff Hammerbacher

    出生于1983年的数学天才Jeff Hammerbacher在23岁时加入了Facebook,一手组建起数据分析队伍.他是“数据科学”(data science)一词的提出者之一,被人们称为“数据上帝 ...

  2. Sublime远程连接Linux

      1:Ctrl+Shift+P,输入install 选择红框框然后Enter       2:输入ftp,然后找到sftp,Enter       3:修改配置     修改账号密码信息远程路径之后 ...

  3. 虚拟空间,malloc

    一,内存空间分布图 所以,mmap其实和堆一样,实际上可以说他们都是动态内存分配,但是严格来说mmap区域并不属于堆区,反而和堆区会争用虚拟地址空间. 这里要提到一个很重要的概念,内存的延迟分配,只有 ...

  4. read()、write()返回 Input/output error, Device or resource busy解决

    遇到的问题,通过I2C总线读.写(read.write)fs8816加密芯片,报错如下: read str failed,error= Input/output error! write str fa ...

  5. python:函数初始

    一.函数 1.函数初始:函数就是封装一个功能 2.函数名,函数体,关键字,函数的返回值 def 关键字,定义一个函数 my_len 函数名书写规则和变量一样 def 与函数名中间一个空格 函数名(): ...

  6. async+await一起使用

    /** get 请求 * @param {接口地址} url * @param {请求参数} params */ get(url,params){ return new Promise((resolv ...

  7. 权限管理demo-Http请求前后监听工具

    工具作用: 1. 输出每次请求的参数 2. 接口的请求时间 package com.mmall.common; import com.mmall.util.JsonMapper; import lom ...

  8. git 修改客户端用户名和密码

    1.修改某个具体项目中的用户名密码 vim xx/{yourProject dir }/.git/.git-credentials 在.git-credentials文件中配置用户名密码 https: ...

  9. spark-1

    先测试搭好的spark集群: 本地模式测试: 在spark的目录下: ./bin/run-example SparkPi 10 --master local[2] 验证成功: 集群模式 Spark S ...

  10. jsonArray返回

    dao <select id="selectShopInfo" resultType="java.util.HashMap"> SELECT * F ...