linux最初配置( vimrc设置 、tab键设置 inputrc、中文输入法等等)
1、.vimrc設(shè)置 ?
syntax on
?set tabstop=4
?set softtabstop=4
?set autoindent
?set cindent
?set nu
?set ruler
?" change the interprise color??修改vim的注釋顏色
?highlight Comment ctermfg=green guifg=green
~
2、忽略tab鍵大小寫:
編輯~/.inputrc,在里面加一行
set completion-ignore-case on
即可
這樣,如果你在文件夾里有一個(gè)文件叫Abort的話,那你輸入ab,再按tab,bash也會(huì)幫你把它擴(kuò)展為Abort
?
3. cp /etc/DIR_COLORS ~/.dir_colors:更改目錄顏色
第81行:DIR 01;34(01:粗體,34:藍(lán)色)
修改為:DIR 01;33(01:粗體,33:黃色)
修改目錄為36 或者33
?
debian特殊:
作者: Relief 出自: http://www.linuxdiyf.com
1. 修改~/.bashrc中:
# enable color support of ls and also add handy aliases
if [ "$TERM" != "dumb" ]; then
#eval "`dircolors -b`"
eval "`dircolors ~/.dircolors`"
alias ls='ls --color=auto'
#alias dir='ls --color=auto --format=vertical'
#alias vdir='ls --color=auto --format=long'
fi
2. $dircolors -p > ~/.dircolors
3. 修改~/.dircolors中的:" DIR 01;34 # directory " 為自己喜歡的顏色(共有8種顏色可選,具體請看.dircolors注釋)。
4.安裝中文輸入法(centos)
?yum install "@Chinese Support"
查看在system->preferences->input method 如果沒有注銷一下?=======================================================
debian配置源
deb http://ftp.cn.debian.org/debian/ sid main contrib non-free
deb-src http://ftp.cn.debian.org/debian/ sid main contrib non-free
deb http://security.debian.org/ testing/updates main contrib
deb-src http://security.debian.org/ testing/updates main contrib
###:Debian 社區(qū)很高興的宣佈,中國大陸地區(qū)將啓用一個(gè)新的主映射站臺(tái)。該映射站臺(tái)地址?ftp.cn.debian.org,會(huì)顯著縮短中國大陸地區(qū)訪問軟件倉庫的網(wǎng)絡(luò)延遲,從而提升 Debian 在中國大陸用戶的使用體驗(yàn),並且 IPv4 和 IPv6 均可訪問。除了 Debian 的軟件倉庫源,該地址還提供 Debian 的 CD、DVD 以及藍(lán)光映射站臺(tái)檔案下載,並還有 backports (往回移植) 源。https://www.debian.org/News/2011/20110525.zh-hk.html
apt-get update(安裝時(shí) 只安裝最基本系統(tǒng))
apt-get dist-upgrade ? apt-get upgrade
=================
apt-get install xfce4
apt-get install xfce4-terminal (自帶不支持中文,xfce默認(rèn)的終端上xterm)
轉(zhuǎn)載于:https://www.cnblogs.com/qbmiller/p/3758520.html
總結(jié)
以上是生活随笔為你收集整理的linux最初配置( vimrc设置 、tab键设置 inputrc、中文输入法等等)的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Java 并发专题 :FutureTas
- 下一篇: 【linux】学习笔记