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/
  • 相关阅读:
    u-boot启动流程分析(1)_平台相关部分
    Linux文件系统简介
    PHP将部分内容替换成星号
    自制jQuery焦点图切换简易插件
    一次解决页面特效问题的排查记录
    自制jQuery标签插件
    一套后台管理html模版
    自制jquery可编辑的下拉框
    注册页面的一些记录
    CSS选择器的一些记录
  • 原文地址:https://www.cnblogs.com/jackchen-Net/p/6264983.html
Copyright © 2011-2022 走看看