深度linux系统硬件要求,deepin

deepin/Ubuntu/Mac OS X

用来记录一些在类Unix中用到的小软件, 及其安装和配置

oh my zsh

install

#在Mac OS X中自带zsh

apt-get installzsh

#以下两种任选一种安装即可

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

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

config

#ZSH主题

ZSH_THEME="ys"

#自动纠错功能

ENABLE_CORRECTION="true"

#插件: 网页搜索, git, osx, 最后一次工作目录

plugins=(web-search git osx last-working-dir)

#运行oh my zsh

exportZSH=~/.oh-my-zsh

source $ZSH/oh-my-zsh.sh

#时间戳

HIST_STAMPS="yyyy-mm-dd"

#启用 cd 命令的历史纪录,cd -[TAB]进入历史路径

setopt AUTO_PUSHD

#相同的历史路径只保留一个

setopt PUSHD_IGNORE_DUPS

#设置别名

aliasvi='vim'

alias -s js=vi

alias -s java=vi

alias -s txt=vi

alias -s html=vi

alias -s gz='tar -xzvf'

alias -s tgz='tar -xzvf'

alias -s zip='unzip'

alias -s bz2='tar -xjvf'

aliasga='git add .'

aliasgd='git diff'

aliasgcm='git checkout master'

aliasgcd='git checkout dev'

aliasgcmsg='git commit -m'

aliasgcl='git clone'

aliasgps='git push origin master'

aliasgpl='git pull origin master'

aliasgl='git lg'

aliasgr='git reset --hard HEAD'

Vim

包管理工具 pathogen

安装:

mkdir -p ~/.vim/autoload ~/.vim/bundle && curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim

这时在~/.vim目录下就多了两个文件夹autoload和bundle。

autoload文件夹下有pathogen.vim文件,是安装pathogen的目录;

bundle文件夹是以后安装其他插件的目录,也就是说以后安装vim其他插件都安装在~/.vim/bundle目录下,进行统一的管理。

到这里Pathogen安装并没有完成,还需要将相应的生效命令写到配置文件~/.vimrc文件里,在~/.vimrc文件中添加以下三句话:

call pathogen#infect()

syntax on

filetype plugin indent on

在infect()中表示插件目录, 默认为~/.vim/bundle,如果需要更改, 只需写在infect()中即可, 例如infect('~/myvim')

之后进入bundle目录, 安装emmet(网页前端使用)插件, vim-commentary(注释)插件, nerdtree(侧边导航栏)插件

安装:

git clone https://github.com/mattn/emmet-vim.git

git clone git://github.com/tpope/vim-commentary.git

git clone https://github.com/scrooloose/nerdtree.git

有一些小技巧可以参考Vim小技巧

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值