2015年8月31日 星期一

Linux .vimrc&powerline及自訂linux指令

剛裝好Linux OS預先設定適合自己的.vimrc

1. .vimrc(vim設定檔)
網路上範例非常多或參考
https://github.com/JackABK/vimrc_setting


2. power line(直接看git當前的branch)
https://github.com/b-ryan/powerline-shell
網路上範例也十分多

安裝玩power line需在.bashrc增加已下指令
function _update_ps1() {
       export PS1="$(~/powerline-shell-master/powerline-shell.py --mode flat $?)"
}

export PROMPT_COMMAND="_update_ps1"

主要讓他去讀取powerline所在的資料夾

3. 自訂指令linux組合指令
例如ls -al
可依自己習慣簡化喜歡的指令,例如這邊簡化為ll

在.bashrc內設定如下
alias ll='ls -al'

沒有留言:

張貼留言