-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add git-prompt and default editor=vim in profile.d to silverblue-base…
… image.
- Loading branch information
1 parent
e12ea0f
commit 78392f5
Showing
3 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# shellcheck shell=sh | ||
# Initialization script for bash | ||
|
||
if [ -f /usr/share/git-core/contrib/completion/git-prompt.sh ] | ||
then | ||
source /usr/share/git-core/contrib/completion/git-prompt.sh | ||
|
||
export GIT_PS1_SHOWDIRTYSTATE=true | ||
export GIT_PS1_SHOWUNTRACKEDFILES=true | ||
export GIT_PS1_SHOWSTASHSTATE=true | ||
export GIT_PS1_SHOWUPSTREAM="auto" | ||
|
||
export PS1='[\u@\h \W$(__git_ps1 " (%s)")]\$ ' | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Ensure vim is set as EDITOR if it isn't already set | ||
|
||
if [ -z "$EDITOR" ]; then | ||
export EDITOR="/usr/bin/vim" | ||
fi |