zoukankan      html  css  js  c++  java
  • 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/
  • 相关阅读:
    【noi 2.6_9270】&【poj 2440】DNA(DP)
    【noi 2.6_9271】奶牛散步(DP)
    【noi 2.6_747】Divisibility(DP)
    【noi 2.6_7113】Charm Bracelet(DP)
    【noi 2.6_9268】酒鬼(DP)
    【noi 2.6_9267】核电站(DP)
    【noi 2.6_9265】取数游戏(DP)
    【noi 2.6_2000】&【poj 2127】 最长公共子上升序列 (DP+打印路径)
    【noi 2.6_8786】方格取数(DP)
    【noi 2.6_90】滑雪(DP)
  • 原文地址:https://www.cnblogs.com/jackchen-Net/p/6264983.html
Copyright © 2011-2022 走看看