zoukankan      html  css  js  c++  java
  • shell coding about mac ox

    1, mac path---http://blog.csdn.net/playstudy/article/details/50149021

    Mac系统的环境变量,加载顺序为:
    /etc/profile /etc/paths ~/.bash_profile ~/.bash_login ~/.profile ~/.bashrc

    vim .bash_profile 

     

    export PATH=~/mybin:$PATH

     

    source .bash_profile

     2,cd `dirname $0`

    在命令行状态下单纯执行 $ cd `dirname $0` 是毫无意义的。因为他返回当前路径的"."。
    这个命令写在脚本文件里才有作用,他返回这个脚本文件放置的目录,并可以根据这个目录来定位所要运行程序的相对位置(绝对位置除外)。

    3, 方便的安装: brew install 

  • 相关阅读:
    牛客练习赛51
    [HZOI 2016] 偏序(CDQ套CDQ)
    AtCoder Beginner Contest 140
    [国家集训队] 拉拉队排练
    [CF91B] Queue
    [AT3867] Digit Sum 2
    [TJOI2007] 路标设置
    [HNOI2001] 求正整数
    [十二省联考2019] 异或粽子
    [SDOI2013] 直径
  • 原文地址:https://www.cnblogs.com/yueyebigdata/p/6271068.html
Copyright © 2011-2022 走看看