快捷键

Mac

  • 全屏截图:按下Command+Shift+3
  • 区域截图:按下Command+Shift+4
  • 窗口截图:按下Command+Shift+4后,再按下空格键
  • 输入法切换:Ctrl + 空格
  • 屏幕切换:win(Command) + Tab
  • 程序内部切换:Ctrl + Tab
  • 浏览器刷新: Command + Shift + R
  • 浏览器历史纪录:command + Shift + Back Space
  • command = ctrl
  • option = alt

shall

  • 改变文件名或文件目录:mv file1 file2
  • 移除文件或文件夹:rm -rf ./file
  • 匹配查找:find *.md
  • 结束进程:kill -9 600
  • 远程登录:telnet
  • 显示设置过的环境变量:env
  • 显示当前目录:pwd
  • 清屏:Ctrl + l
  • 清屏:clear
  • 列出文件:ls

npm

  • npm init
  • npm install <name>
  • npm install <name> -g
  • npm install <name> --save
  • npm remove <name> 移除
  • npm update <name> 更新
  • npm ls 列出当前安装的了所有包
  • npm root 查看当前包的安装路径
  • npm root -g 查看全局的包的安装路径
  • npm help 帮助
  • 如果要单独查看install命令的帮助,可以使用的 npm help install

cd /Applications/Sublime\ Text.app/Contents/MacOS/Packages/;open . cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages ln "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl

jetb

jetb merge <local_file_path> <remote_file_path> <base_file_path> <merged_file_path>
jetb merge <ours_file_path> <theirs_file_path> <common_ancestor_file_path> <merged_file_path>
jetb merge <yours_file_path> <theirs_file_path> <common_ancestor_file_path> <merged_file_path>
jetb merge <my_file_path> <theirs_file_path> <common_ancestor_file_path> <merged_file_path>
jetb diff <new_version_file_path> <old_version_file_path>

#Use JetBrains Production as Merge Tool
1. make `jetb` as the alias to start JetBrains Production
   How: JetBrains ==> Tools ==> Create Command Line Launcher ==> type 'jetb'
   e.g: jetb diff ./work_rec_huanxun.md ./work_rec_huanxun_another.md

results matching ""

    No results matching ""