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/
  • 相关阅读:
    我是如何用三小时搞出个赚钱产品的?
    搭建一个基于nuxt.js的项目
    栅格系统
    git使用
    通过JS获取屏幕高度,借助屏幕高度设置div的高度
    如何理解盒模型
    e.target.value 和 this 的区别
    组件化设计:弹窗的使用逻辑
    uni-app 入坑记
    MAC 系统快捷键
  • 原文地址:https://www.cnblogs.com/jackchen-Net/p/6264983.html
Copyright © 2011-2022 走看看