Add prompt icons
parent
4f7e452a8c
commit
67b01c94b8
4
.bashrc
4
.bashrc
|
@ -16,10 +16,10 @@ get_branch_name() {
|
||||||
|
|
||||||
get_git_info() {
|
get_git_info() {
|
||||||
git rev-parse --is-inside-work-tree &>/dev/null || return
|
git rev-parse --is-inside-work-tree &>/dev/null || return
|
||||||
echo -e "- ${1}$(get_branch_name)"
|
echo -e " ${1}$(get_branch_name)"
|
||||||
}
|
}
|
||||||
|
|
||||||
PS1='\[\033[38;5;244m\]\[${bold}\]$(get_git_info && echo "\n")\[${reset}\]\u \W $ '
|
PS1='\[\033[38;5;244m\]\[${bold}\]$(get_git_info && echo "\n")\[${reset}\]\u \W ❭ '
|
||||||
|
|
||||||
# history
|
# history
|
||||||
export HISTCONTROL=ignoreboth
|
export HISTCONTROL=ignoreboth
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit dc0c988a06ce38db41d6f5e9294066ed712ad07b
|
Loading…
Reference in New Issue