服务器个人账户偏好设置:
服务器环境配置文件.cshrc
alias cd 'cd \!* ; ls ;set prompt="`/bin/pwd`>"'
效果 cd 可以有层次效果
编辑器vimrc 习惯设置.vimrc
set fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936
set termencoding=utf-8 "设置编码
set encoding=utf-8
set nu "显示行号
set number
set cursorline "突出显示当前行
set mouse=a "启用鼠标
set selection=exclusive
set selectmode=mouse,key
set showmatch “显示括号匹配
set tabstop=4 "设置Tab长度为4空格
set shiftwidth=4 "设置自动缩进长度为4空格
set autoindent "继承前一行的缩进方式,适用于多行注释
set paste "设置黏贴模式
set listchars=tab:>-,trail:- "粘贴不会畸形
set laststatus=2 "总是显示状态栏
set ruler "显示光标当前位置
autocmd BufWritePost $MYVIMRC source $MYVIMRC "让vimrc配置变更立即生效
set nocompatible "close compatible with vi
set history=50 "keep 50 lines of command line history
set backspace=indent,eol,start
set expandtab "expand tab to space, or `set noexpandtab' to ignore
set showcmd "display incomplete commands
set incsearch "do incremental searching
set ignorecase smartcase
set hlsearch
syntax on
filetype on
filetype plugin on
filetype indent on
set nowrap
colorscheme desert "~/.vim/colors/desert.vim
set guifont=Monospace\ 13
set tags=./tags
================
bashrc 版本
export PATH
export PS1='[\u@\h $PWD]\$'
alias cd=cdls
function cdls()
{
builtin cd "$1" && ls
}