|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
##############################################################################
|
|
|
|
|
# BASH CHEATSHEET (中文速查表) - by skywind (created on 2018/02/14)
|
|
|
|
|
# Version: 33, Last Modified: 2018/03/03 19:23
|
|
|
|
|
# Version: 34, Last Modified: 2018/03/07 17:49
|
|
|
|
|
# https://github.com/skywind3000/awesome-cheatsheets
|
|
|
|
|
##############################################################################
|
|
|
|
|
|
|
|
|
@ -646,6 +646,9 @@ lsof -P -i -n | cut -f 1 -d " "| uniq | tail -n +2
|
|
|
|
|
# Vim 中保存一个没有权限的文件
|
|
|
|
|
:w !sudo tee > /dev/null %
|
|
|
|
|
|
|
|
|
|
# 在 .bashrc / .bash_profile 中加载另外一个文件(比如你保存在 github 上的配置)
|
|
|
|
|
source ~/github/profiles/my_bash_init.sh
|
|
|
|
|
|
|
|
|
|
# 终端下正确设置 ALT 键和 BackSpace 键
|
|
|
|
|
http://www.skywind.me/blog/archives/2021
|
|
|
|
|
|
|
|
|
@ -707,6 +710,21 @@ function ccat() {
|
|
|
|
|
fi
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# 放到你的配置文件中,给 man 增加色彩高亮
|
|
|
|
|
export LESS_TERMCAP_mb=$'\E[1m\E[32m'
|
|
|
|
|
export LESS_TERMCAP_mh=$'\E[2m'
|
|
|
|
|
export LESS_TERMCAP_mr=$'\E[7m'
|
|
|
|
|
export LESS_TERMCAP_md=$'\E[1m\E[36m'
|
|
|
|
|
export LESS_TERMCAP_ZW=""
|
|
|
|
|
export LESS_TERMCAP_us=$'\E[4m\E[1m\E[37m'
|
|
|
|
|
export LESS_TERMCAP_me=$'\E(B\E[m'
|
|
|
|
|
export LESS_TERMCAP_ue=$'\E[24m\E(B\E[m'
|
|
|
|
|
export LESS_TERMCAP_ZO=""
|
|
|
|
|
export LESS_TERMCAP_ZN=""
|
|
|
|
|
export LESS_TERMCAP_se=$'\E[27m\E(B\E[m'
|
|
|
|
|
export LESS_TERMCAP_ZV=""
|
|
|
|
|
export LESS_TERMCAP_so=$'\E[1m\E[33m\E[44m'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
##############################################################################
|
|
|
|
|
# References
|
|
|
|
|