mirror of
https://gitea.zaclys.com/yannic/dotfiles.git
synced 2026-06-15 11:11:57 +02:00
mise en place de starship
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user