Configure global environment for centos

Source: Internet
Author: User
Tags autoload egrep

I. Set bashrc

 
    if [ -f /etc/bashrc ]; then      . /etc/bashrc    fi  
Ii. Set alias


Alias egrep = 'egrep -- color = auto'
Alias fgrep = 'fgrep -- color = auto'
Alias G = 'gvim'
Alias GA = 'G ~ /. Alias'
Alias GLG = 'git LG'
Alias Gls = 'git status'
Alias grep = 'grep -- color = auto'
Alias GST = 'git status'
Alias H = 'History'
Alias L = 'LS-lH'
Alias LA = 'LS-'
Alias LL = 'LS-alf'
Alias ls = 'ls -- color = auto'
Alias SA = 'source ~ /. Alias'
Alias venv = 'virtualenv'

  

3. Set Vim

Global:

/Etc/Vim/autoload/pathogen. Vim

The/etc/Vim/autoload/bundle/** Vim plug-in is installed in this directory, and the local user ln-S is installed in their respective directories.

/Etc/vimrc

"-------------------------------------------------set nucolorscheme desertsyntax onset ruler"set cursorline"set cursorcolumn"-------------------------------------------------imap <s-enter> <esc>oimap <c-enter> <esc>Onmap K 6knmap J 6j"-------------------------------------------------set autoindentset smartindentset smarttabset tabstop=4set shiftwidth=4set expandtabset list listchars=tab:>-"ret !4set virtualedit=all "-------------------------------------------------"call pathogen#infect()  syntax onfiletype plugin indent on"-------------------------------------------------autocmd FileType apache set commentstring=#\ %sautocmd FileType verilog set commentstring=//\ %sautocmd FileType c set commentstring=//\ %s                                                    

Local User:

Ln-S/etc/Vim/autoload /~ /. Vim/

Ln-S/etc/Vim/autoload/bundle /*~ /. Vim/bundle/

G ~ /. Vimrc needs to be added

call pathogen#infect()

 

4. Set the local environment

~ /. Bashrc

~ /. Alias_local

~ /. Vimrc

~ /. Vim

 

Configure global environment for centos

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.