add starship prompt
This commit is contained in:
parent
a5fedb7e28
commit
0150cb0884
2 changed files with 39 additions and 44 deletions
12
dot_bashrc
12
dot_bashrc
|
@ -29,6 +29,11 @@ HISTFILESIZE=2000
|
|||
# update the values of LINES and COLUMNS.
|
||||
shopt -s checkwinsize
|
||||
|
||||
# add home bin
|
||||
if [ -d "$HOME/.local/bin" ]; then
|
||||
export PATH="$HOME/.local/bin:$PATH"
|
||||
fi
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# EDITOR
|
||||
# ---------------------------------------------------------------------------
|
||||
|
@ -52,6 +57,9 @@ alias vi=$EDITOR
|
|||
# PROMPT
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
if [ -f "$HOME/.local/bin/starship" ]; then
|
||||
eval "$(starship init bash)"
|
||||
else
|
||||
# set a minimalist prompt
|
||||
red='\[\e[0;31m\]' # Red
|
||||
green='\[\e[0;32m\]' # Green
|
||||
|
@ -83,6 +91,7 @@ if [ -f "$HOME/.bash-git-prompt/gitprompt.sh" ]; then
|
|||
GIT_PROMPT_THEME=Solarized_Yax
|
||||
source $HOME/.bash-git-prompt/gitprompt.sh
|
||||
fi
|
||||
fi
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# ALIASES
|
||||
|
@ -129,6 +138,3 @@ if [ -d "$HOME/.bashrc.d/" ]; then
|
|||
done
|
||||
fi
|
||||
|
||||
if [ -d "$HOME/.local/bin" ]; then
|
||||
export PATH="$HOME/.local/bin:$PATH"
|
||||
fi
|
||||
|
|
|
@ -1,21 +1,10 @@
|
|||
# Inserts a blank line between shell prompts
|
||||
add_newline = false
|
||||
|
||||
[git_status]
|
||||
conflicted = "⚔️ "
|
||||
ahead = "🏎️ 💨 ×${count}"
|
||||
behind = "🐢 ×${count}"
|
||||
diverged = "🔱 🏎️ 💨 ×${ahead_count} 🐢 ×${behind_count}"
|
||||
untracked = "🛤️ ×${count}"
|
||||
stashed = "📦 "
|
||||
modified = "📝 ×${count}"
|
||||
staged = "🗃️ ×${count}"
|
||||
renamed = "📛 ×${count}"
|
||||
deleted = "🗑️ ×${count}"
|
||||
style = "bright-white"
|
||||
format = "$all_status$ahead_behind"
|
||||
add_newline = true
|
||||
|
||||
[directory]
|
||||
truncation_length = 5
|
||||
truncation_symbol = "…/"
|
||||
truncate_to_repo = false
|
||||
|
||||
[package]
|
||||
disabled = true
|
||||
|
|
Loading…
Add table
Reference in a new issue