xiyou 发表于 2017-7-7 11:33:28

【工具使用】mac电脑使用技巧

  本文地址
  
  分享提纲:
  1.mac命令行和finder的交互
  2. 一些mac的插件和软件
  3. 一些开发的配置



1.mac命令行和findder交互



          1.1)【打开文件夹】

      命令行中打开当前文件夹: open .

          1.2)【显示路径】

      文件夹拖动到 命令行窗口,显示这个文件夹的路径。

          1.3)【命令行打开文本编辑】

    open命令

               open -e yourFile    参数说明:-e使用文本编辑器打开

               open -t yourFile   参数说明:-t使用默认编辑器打开



         1.4) 【命令行下直接打开应用程序】

    open /Applications/yourApp

            a) MAC终端命令行下用sublime、vscode、atom打开文件或目录

    b) 打开 sublime




  open -a /Applications/Sublime\ Text\ 2.app/yourFile.log
  如果使用频繁,还可以添加软连接
  sudo ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/bin/sublime

            

          5)【文件夹中直接进入命令行】

               OS X 在此处打开终端 open terminal here

  

     6)【剪切】

    源文件处:com+c

    目标位置: com+option+v就剪切过来了

      


2. 一些mac的插件



 2.1) Alfred : http://www.cnblogs.com/chijianqiang/p/alfred.html

    2.2) 【brew】安装 mac的管理软件 brew



usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    2.3)【虚拟机】

     怎么在苹果Mac虚拟机上安装Win7
   2.4)mac下的一些软件
    2.4.1)mac版PS:

      -- 下载地址:http://dlsw.baidu.com/sw-search-sp/soft/e0/25792/Adobe.CS6.Photoshop_13_LS3.1395977557.dmg

      -- 破解补丁:http://pc3-ww1.newasp.net:81/soft/soft1/Photoshop%20CS6_p.rar


3. 一些开发的配置





  3.1)设置环境变量
    sudo vim ~/.bash_profile
       里面可以添加



alias tree="find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'"
export AVATAR_HOME=/Library/WebServer/Documents/
  
3.2)【mysql安装】
  Mac电脑安装MySQL:
    mysql软件下载地址
      mac mysql:
    mac下brew 安装mysql


    Mac下启动和停止Mysql服务

     在 Mac 下用 Homebrew 安装 MySQL
    3.3) mac下中文乱-- 解决
  文件/private/etc/vimrc中添加



set fileencodings=ucs-bom,utf-8,cp936,gb18030,big5,euc-jp,euc-kr,latin1

  关闭原来的shell窗口,重新打开及vim就好了
    





附录参考:


 1.Mac 热键大全
  2.Mac入门 (一) 基本用法
  3.Mac入门 (二) 使用VMware Fusion虚拟机
  4.Mac入门(三)使用brew安装软件
  5. mac终端命令大全介绍
    6. 【好】10 个实用技巧,让 Finder 带你飞
页: [1]
查看完整版本: 【工具使用】mac电脑使用技巧