zoukankan      html  css  js  c++  java
  • linux最初配置( vimrc设置 、tab键设置 inputrc、中文输入法等等)

    1、.vimrc设置  

    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
    即可
    这样,如果你在文件夹里有一个文件叫Abort的话,那你输入ab,再按tab,bash也会帮你把它扩展为Abort

    3. cp /etc/DIR_COLORS ~/.dir_colors:更改目录颜色

    第81行:DIR 01;34(01:粗体,34:蓝色)
    修改为: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 社區很高興的宣佈,中國大陸地區將啓用一個新的主映射站台。該映射站台地址 ftp.cn.debian.org,會顯著縮短中國大陸地區訪問軟件倉庫的網絡延遲,從而提升 Debian 在中國大陸用戶的使用體驗,並且 IPv4 和 IPv6 均可訪問。除了 Debian 的軟件倉庫源,該地址還提供 Debian 的 CD、DVD 以及藍光映射站台檔案下載,並還有 backports (往回移植) 源。https://www.debian.org/News/2011/20110525.zh-hk.html

    apt-get update(安装时 只安装最基本系统)

    apt-get dist-upgrade   apt-get upgrade

    =================

    apt-get install xfce4

    apt-get install xfce4-terminal (自带不支持中文,xfce默认的终端上xterm)

  • 相关阅读:
    The required MAP capability is more than the supported max container capability in the cluster. Killing the Job. mapResourceRequest: <memory:2048, vCores:2> maxContainerCapability:<memory:1024, vCores
    centos6.8安装cdh6.0.0
    oracle拼接sql
    数据插入不覆盖更新,设置定时任务
    支持向量机在 R 语言中的实现和使用
    怎么彻底去掉office365
    汽车电子软件规范学习
    ISO/IEC TS 17961 C Secure Coding Rules
    UML图
    Gitflow工作流程
  • 原文地址:https://www.cnblogs.com/qbmiller/p/3758520.html
Copyright © 2011-2022 走看看