现在的位置: 首页 > 综合 > 正文

unix服务器常用配置

2013年05月30日 ⁄ 综合 ⁄ 共 587字 ⁄ 字号 评论关闭

  最近用freebsd搭建了一个服务器,把一些常用的配置点记录下来,供以后参考。

1.修改默认shell为bash

which bash      #查看bash位置
vipw            #更改shell的位置

也可用 chsh 实现。

2.bash配置文件

alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'

3.vim配置文件

syntax on

set nocompatible
set nu
set ai
set paste
set autoindent
set smartindent
set ignorecase
set showcmd
set incsearch
set showmatch
set hlsearch
set incsearch
set ruler
set tabstop=4
set softtabstop=4
set shiftwidth=4
set noexpandtab

set mouse=a
set mouse=v
set selection=exclusive
set selectmode=mouse,key
set pastetoggle=<F4>

set report=0

filetype on
filetype plugin on
filetype indent on

set fileencodings=UTF-8,GBK2312,GBK
set termencoding=UTF-8
set encoding=PRC

 

 

 

 

 

 

 

 

 

 

 

 

 

 

抱歉!评论已关闭.