配置vim编辑器、git常用别名、item2自动提示

27 篇文章 0 订阅
15 篇文章 0 订阅
1、vim ~/.vimrc
    set nocompatible //生命是vim而不是vi
    syntax on //语法高亮
    et t_CO=256
    set linespace=16
    set autowriteall
    set tabstop=8
    set expandtab
    set softtabstop=4
    set shiftwidth=4
    set backspace=indent,eol,start

2、http://draculatheme.com/ 各个工具主题

3、配置git:
    alias gs="git status"
    alias gc="git commit -m "
    alias gaa="git add ."
    alias gp="git push"
    alias gl="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
    alias gll="git log --graph --abbrev-commit --decorate --all --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(dim white) - %an%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n %C(white)%s%C(reset)'"    



4、item2自动提示
https://github.com/zsh-users/zsh-autosuggestions

4.1 因为我们用的ohmyzsh,所以执行:
git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions

4.2 打开vim ~/zshrc,找到plugins,加入代码如下:
plugins=(
  ...
  zsh-autosuggestions
)
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值