更新 Scripts/bash_aliases
continuous-integration/drone/push Build encountered an error
Details
continuous-integration/drone/push Build encountered an error
Details
parent
6f2175ac1a
commit
bb7cddc113
|
@ -49,11 +49,6 @@ acp(){
|
|||
}
|
||||
|
||||
|
||||
export LSCOLORS="gxfxcxdxbxegedabagacad"
|
||||
export CLICOLOR=1
|
||||
export TERM="xterm-256color"
|
||||
PS1='\[\e[0;33m\]\u\[\e[0m\]@\[\e[0;32m\]\h\[\e[0m\]:\[\033[01;34m\]\w\[\033[00m\]$(git_info)\[\033[00m\]\n\[\033[1;31m\]\$ \[\033[00m\]'
|
||||
|
||||
# functions
|
||||
function git_info {
|
||||
ref=$(git symbolic-ref HEAD 2> /dev/null) || return;
|
||||
|
@ -79,4 +74,9 @@ function git_info {
|
|||
|
||||
echo " ($(tput bold)${ref#refs/heads/}$uc$us$ut$st$(tput sgr0)$(tput setaf 254))";
|
||||
# echo "(${ref#refs/heads/})";
|
||||
}
|
||||
}
|
||||
|
||||
export LSCOLORS="gxfxcxdxbxegedabagacad"
|
||||
export CLICOLOR=1
|
||||
export TERM="xterm-256color"
|
||||
PS1='\[\e[0;33m\]\u\[\e[0m\]@\[\e[0;32m\]\h\[\e[0m\]:\[\033[01;34m\]\w\[\033[00m\]$(git_info)\[\033[00m\]\n\[\033[1;31m\]\$ \[\033[00m\]'
|
Loading…
Reference in New Issue