• CentOs6.8安装Git并安装oh my zsh


    (一)git安装

    1.下载git2.4.9或其他版本

    Index of /pub/software/scm/git git各个版本下载链接:

    https://www.kernel.org/pub/software/scm/git/

    2.安装git依赖的包 
    [root@neusoft-master git-2.4.9]#yum install zlib-devel 
    [root@neusoft-master git-2.4.9]#yum install openssl-devel 
    [root@neusoft-master git-2.4.9]#yum install perl 
    [root@neusoft-master git-2.4.9]#yum install cpio 
    [root@neusoft-master git-2.4.9]#yum install expat-devel 
    [root@neusoft-master git-2.4.9]#yum install gettext-devel 
    //安装autoconf 
    [root@neusoft-master git-2.4.9]#yum install autoconf 

    3.安装git 
    [root@neusoft-master git-2.4.9]#tar xzvf git-latest.tar.gz 

    4.[root@neusoft-master git-2.4.9]#./configure 

    5.[root@neusoft-master git-2.4.9]#make 
    6.[root@neusoft-master git-2.4.9]#make install

     7. [root@neusoft-master git-2.4.9]# whereis git

    git: /usr/bin/git /usr/local/bin/git /usr/share/man/man1/git.1.gz

     

     8.[root@neusoft-master git-2.4.9]# git --version

    git version 2.4.9
    [root@neusoft-master git-2.4.9]#

    以上完成了git的安装

    (二)oh my zsh安装

    通常使用的是Bash、zsh,但是由于zsh非常复杂,所以以为作者就基于zsh开发了开源的oh my zsh并托管于github上

    其网址为:http://ohmyz.sh/ 非常火的项目,如下图

            

    1.两种安装方式

    (1)通过curl

    $ sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

    (2)通过wget

    $ sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"

    2.在安装git的环境下安装只需要输入上述命令即可

    3.安装成功即可使用

    注:oh my zsh在mac和linux用途很广泛

    博客地址:http://www.cnblogs.com/jackchen-Net/
  • 相关阅读:
    初识js中的闭包
    ES5新增数组方法every()、some()、filter()、map()
    arguments对象的callee属性和caller属性
    js中的全局变量
    js中switch/case分支的值可以是变量或表达式
    js中的arguments对象
    CSSの変数を使う
    我应该使用预处理器吗
    JS导出网页数据到EXCEL
    冰与火之歌:浏览器前缀
  • 原文地址:https://www.cnblogs.com/jackchen-Net/p/6264983.html
Copyright © 2020-2023  润新知