mise en place de starship
This commit is contained in:
parent
0150cb0884
commit
a86e9fc69e
3 changed files with 10 additions and 2 deletions
|
@ -57,7 +57,7 @@ alias vi=$EDITOR
|
|||
# PROMPT
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
if [ -f "$HOME/.local/bin/starship" ]; then
|
||||
if hash starship 2>/dev/null; then
|
||||
eval "$(starship init bash)"
|
||||
else
|
||||
# set a minimalist prompt
|
||||
|
|
|
@ -11,7 +11,7 @@ export FZF_DEFAULT_OPTS='--height 40% --reverse --border'
|
|||
|
||||
# quickly find a project
|
||||
p(){
|
||||
cd {{ .projectdir }} && `__fzf_cd__`
|
||||
cd {{ .projectdir }} && `__fzf_cd__` && [[ -d ".git" ]] && git fetch
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -6,5 +6,13 @@ truncation_length = 5
|
|||
truncation_symbol = "…/"
|
||||
truncate_to_repo = false
|
||||
|
||||
[git_status]
|
||||
ahead = "⇡${count}"
|
||||
diverged = "⇕⇡${ahead_count}⇣${behind_count}"
|
||||
behind = "⇣${count}"
|
||||
|
||||
[package]
|
||||
disabled = true
|
||||
|
||||
[java]
|
||||
disabled = true
|
||||
|
|
Loading…
Add table
Reference in a new issue