Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
Config_Files
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Maxime Bombar
Config_Files
Commits
a64e61f1
Commit
a64e61f1
authored
Jul 25, 2013
by
Vincent Le gallic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Oubli de _prompt pour la couleur nocolor
parent
30b1fd7c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
.bashrc
.bashrc
+2
-2
No files found.
.bashrc
View file @
a64e61f1
...
...
@@ -79,7 +79,7 @@ get_vcs_info () {
LBRANCH
=
$(
eval
"
${
BRANCH
[
$DIR
]
}
"
)
LTYPE
=
"
${
TYPE
[
$DIR
]
}
"
if
[
"
$color_prompt
"
=
yes
]
;
then
VCS_info
=
"
${
nocolor
}${
vcs_symbols_color
}
(
${
vcs_type_color
}
$LTYPE
${
vcs_symbols_color
}
)-
${
vcs_symbols_color
}
[
${
vcs_branch_color
}
$LBRANCH
${
vcs_symbols_color
}
]
${
nocolor
}
"
VCS_info
=
"
${
nocolor
_prompt
}${
vcs_symbols_color
}
(
${
vcs_type_color
}
$LTYPE
${
vcs_symbols_color
}
)-
${
vcs_symbols_color
}
[
${
vcs_branch_color
}
$LBRANCH
${
vcs_symbols_color
}
]
${
nocolor_prompt
}
"
else
VCS_info
=
"(
$LTYPE
)-[
$LBRANCH
]"
fi
...
...
@@ -208,7 +208,7 @@ function prompt_command
# il faut changer $((31+($?==0)*6)) si vous y tenez vraiment et que vous comprenez ce que vous faites
ERR
=
'[ \[\e[1;$((31+($?==0)*6))m\]$?'
${
line_color_prompt
}
' ]'
$MINUS_CHAR
DATE
=
"(
${
date_color
}
\D
{%H:%M:%S}
${
line_color_prompt
}
)"
PROMPT
=
"
${
username_color
}
\u
${
symbols_color
}
@
${
host_color
}
\h
${
symbols_color
}
\$
${
nocolor
}
"
PROMPT
=
"
${
username_color
}
\u
${
symbols_color
}
@
${
host_color
}
\h
${
symbols_color
}
\$
${
nocolor
_prompt
}
"
PS1
=
$TITLE
${
line_color_prompt
}
$MINUS_CHAR$DATE$MINUS_CHAR$DIR$MINUS_CHAR$VCS_info
${
line_color_prompt
}
$POST_DIR$ERR
'\n'
$PROMPT
else
DIR
=
"< "
$DIR
" >"
...
...
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