bash customized
Posted petersonx
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了bash customized相关的知识,希望对你有一定的参考价值。
1 # Setup a red prompt for root and a green one for users. 2 # rename this file to color_prompt.sh to actually enable it 3 NORMAL="[e[0m]" 4 RED="[e[1;31m]" 5 GREEN="[e[1;32m]" 6 if [ "$USER" = root ]; then 7 PS1="$REDh [$NORMALw$RED]# $NORMAL" 8 else 9 PS1="$GREENh [$NORMALw$GREEN]$ $NORMAL" 10 fi 11 12 13 # Check for interactive bash and that we haven‘t already been sourced. 14 if [ -n "${BASH_VERSION-}" -a -n "${PS1-}" -a -z "${BASH_COMPLETION_VERSINFO-}" ]; then 15 16 # Check for recent enough version of bash. 17 if [ ${BASH_VERSINFO[0]} -gt 4 ] || 18 [ ${BASH_VERSINFO[0]} -eq 4 -a ${BASH_VERSINFO[1]} -ge 1 ]; then 19 [ -r "${XDG_CONFIG_HOME:-$HOME/.config}/bash_completion" ] && 20 . "${XDG_CONFIG_HOME:-$HOME/.config}/bash_completion" 21 if shopt -q progcomp && [ -r /usr/share/bash-completion/bash_completion ]; then 22 # Source completion code. 23 . /usr/share/bash-completion/bash_completion 24 fi 25 fi 26 27 fi
以上是关于bash customized的主要内容,如果未能解决你的问题,请参考以下文章
-bash: /usr/bin/ls: /lib64/ld-linux-x86-64.so.2: bad ELF interpreter: No such file or directory(代码片段
css 来自myStyles.css的[ArasLabs / custom-form-css]片段,显示应用于myIcon的样式