Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Maxime Bombar
Config_Files
Commits
51c718d3
Commit
51c718d3
authored
Apr 07, 2014
by
Pierre-Elliott Bécue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[.bashrc] Display vcs info on the right
parent
07e181c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
.bashrc
.bashrc
+3
-3
No files found.
.bashrc
View file @
51c718d3
...
...
@@ -480,7 +480,7 @@ nocolor_prompt="\[${nocolor}\]"
# Est-ce qu'on veut que le prompt affiche les information sur l'éventuel dépôt
# versionné dans lequel on se trouve
#~# # Changez cette variable en "yes" pour l'afficher
display_vcs_info
=
yes
display_vcs_info
=
no
# Génération de la ligne de "-"
...
...
@@ -548,13 +548,13 @@ function prompt_command
# Attention "\\\$" devient \$, c'est-à-dire # pour root, $ pour les autres
PROMPT
=
"
${
username_color
}
\u
${
symbols_color
}
@
${
host_color
}
\h
${
symbols_color
}
\\\$
${
nocolor_prompt
}
"
# On fusionne tout ça
PS1
=
$TITLE
${
line_color_prompt
}
$MINUS_CHAR$DATE$MINUS_CHAR$DIR$MINUS_CHAR$
VCS_info
$
{
line_color_prompt
}
$POST_DIR$ERR
'\n'
$PROMPT
PS1
=
$TITLE
${
line_color_prompt
}
$MINUS_CHAR$DATE$MINUS_CHAR$DIR$MINUS_CHAR
${
line_color_prompt
}
$POST_DIR$
VCS_info$
ERR
'\n'
$PROMPT
else
DIR
=
"< "
$DIR
" >"
ERR
=
'[ $? ]'
$MINUS_CHAR
DATE
=
"(
\D
{%H:%M:%S} )"
PROMPT
=
"
\u
@
\h
\\\$
"
PS1
=
$TITLE$MINUS_CHAR$DATE$MINUS_CHAR$DIR$MINUS_CHAR$
VCS_info$POST_DIR
$ERR
'\n'
$PROMPT
PS1
=
$TITLE$MINUS_CHAR$DATE$MINUS_CHAR$DIR$MINUS_CHAR$
POST_DIR$VCS_info
$ERR
'\n'
$PROMPT
fi
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment