u
This commit is contained in:
parent
673a685f04
commit
d1a953c25c
@ -61,8 +61,6 @@ then
|
|||||||
alias sedi='sed -i ""'
|
alias sedi='sed -i ""'
|
||||||
export HOMEBREW_NO_AUTO_UPDATE=true
|
export HOMEBREW_NO_AUTO_UPDATE=true
|
||||||
export BASH_SILENCE_DEPRECATION_WARNING=1
|
export BASH_SILENCE_DEPRECATION_WARNING=1
|
||||||
promptPrefix='<'
|
|
||||||
promptSuffix='>'
|
|
||||||
else
|
else
|
||||||
alias l='ls -l --color=auto' # --time-style=long-iso --color=auto'
|
alias l='ls -l --color=auto' # --time-style=long-iso --color=auto'
|
||||||
alias ll='ls -lA --color=auto'
|
alias ll='ls -lA --color=auto'
|
||||||
@ -70,8 +68,6 @@ else
|
|||||||
alias lll='ls -la --color=auto'
|
alias lll='ls -la --color=auto'
|
||||||
alias sedi='sed -i'
|
alias sedi='sed -i'
|
||||||
export TIME_STYLE='+%Y-%m-%d--%H:%M:%S'
|
export TIME_STYLE='+%Y-%m-%d--%H:%M:%S'
|
||||||
promptPrefix='['
|
|
||||||
promptSuffix=']'
|
|
||||||
fi
|
fi
|
||||||
#export LS_OPTIONS='--color=auto' # 如果没有指定,则自动选择颜色
|
#export LS_OPTIONS='--color=auto' # 如果没有指定,则自动选择颜色
|
||||||
#export CLICOLOR='Yes' #是否输出颜色
|
#export CLICOLOR='Yes' #是否输出颜色
|
||||||
@ -106,7 +102,7 @@ case "$TERM" in
|
|||||||
xterm-color|*-256color) color_prompt=yes;;
|
xterm-color|*-256color) color_prompt=yes;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# color starts with \[\033[${ColorCode}m\] and ends with \[\033[00m\], in which the $ColorCode is `$Style;$Type$Color`:
|
# color starts with \[\033[${Style};${Type}${Color}m\] and ends with \[\033[00m\].
|
||||||
# $Style: text style
|
# $Style: text style
|
||||||
# - `00`: Default style
|
# - `00`: Default style
|
||||||
# - `01`: Bold/Bright
|
# - `01`: Bold/Bright
|
||||||
@ -129,9 +125,9 @@ esac
|
|||||||
# others:
|
# others:
|
||||||
# \w shows absolute path, \W shows current folder.
|
# \w shows absolute path, \W shows current folder.
|
||||||
if [ "$color_prompt" = yes ]; then
|
if [ "$color_prompt" = yes ]; then
|
||||||
PS1='$promptPrefix\[\033[01;42m\]\t\[\033[00m\]#\[\033[01;45m\]\u\[\033[00m\]@\[\033[01;41m\]\h|$(uname)|$(uname -m)\[\033[00m\]::\[\033[01;44m\]\w\[\033[00m\]$promptSuffix '
|
PS1='<\[\033[00;42m\]\t\[\033[00m\]#\[\033[00;45m\]\u\[\033[00m\]@\[\033[00;41m\]\h|$(uname)|$(uname -m)\[\033[00m\]::\[\033[00;44m\]\w\[\033[00m\]> '
|
||||||
else
|
else
|
||||||
PS1='$promptPrefix\t#\u@\h($(uname)-$(uname -m)):\w$promptSuffix ' # \w shows absolute path, \W shows current folder.
|
PS1='<\t#\u@\h($(uname)-$(uname -m)):\w> ' # \w shows absolute path, \W shows current folder.
|
||||||
fi
|
fi
|
||||||
unset color_prompt force_color_prompt
|
unset color_prompt force_color_prompt
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user