laishanhai1040
Articles5
Tags6
Categories3
Linux environment setup

Linux environment setup

Linux environment setup

directory colors

install git

1
$ sudo apt-get install -y git

使用solarized theme for GNU ls

1
$ git clone https://github.com/seebi/dircolors-solarized.git

使用dircolors.256dark配色

1
2
$ cp ~/dircolors-solarized/dircolors.256dark ~/.dircolors
$ eval 'dircolors .dircolors'

设置Terminal支持256色, vim .bashrc并添加以下内容

1
2
export TERM=xterm-256color
alias lsa='ls -alh'

最后再source一下.bashrc

1
$ source .bashrc

或者重新登录一下终端

vimrc

新建一个工作目录vim

1
2
$ mkdir ~/vim
$ cd ~/vim

安装Vundle

1
$ git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim

vim使用molokai主题

1
2
$ git clone https://github.com/tomasr/molokai.git ~/vim
$ sudo cp molokai.vim /usr/share/vim/vim74/colors/

安装ctags

1
$ sudo apt-get install -y ctags

从github上获取我的vimrc文件

1
2
$ git clone https://github.com/laishanhai1040/vimrc.git ~/vim
$ cp ~/vimrc/.vimrc ~/.vimrc

然后打开vim, 在命令模式使用PluginInstall安装vim插件。

00_back.png

Author:laishanhai1040
Link:https://laishanhai1040.github.io/2019/07/21/Linux-environment-setup/
版权声明:本文采用 CC BY-NC-SA 3.0 CN 协议进行许可
×