Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
Config_Files
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Maxime Bombar
Config_Files
Commits
6243d890
Commit
6243d890
authored
Jul 26, 2013
by
Vincent Le gallic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Une variable pour choisir di on VCS ou pas, c'est mieux qu'un #~#
parent
7114afda
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
.bashrc
.bashrc
+10
-3
No files found.
.bashrc
View file @
6243d890
...
...
@@ -171,6 +171,11 @@ else
color_prompt
=
no
fi
# 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
=
no
# Génération de la ligne de "-"
function
gen_minus_line
...
...
@@ -193,9 +198,11 @@ function prompt_command
local pwd
ERR DATE PROMPT DIR POST_DIR
((
SAVE_COLUMNS
==
COLUMNS
))
||
gen_minus_line
#~# # À décommenter si on veut des infos
#~# # quand on se trouve dans un dépôt versionné
#~# get_vcs_info
# À décommenter si on veut des infos
# quand on se trouve dans un dépôt versionné
if
[
"
$display_vcs_info
"
=
yes
]
;
then
get_vcs_info
fi
pwd
=
${
PWD
/#
$HOME
/
'~'
}
if
((
${#
pwd
}
+
${
VCS_size
}
+ 27
>
COLUMNS
))
;
then
...
...
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