Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Boudy
fichiers_configuration
Commits
b6933be1
Commit
b6933be1
authored
Apr 07, 2014
by
Pierre-Elliott Bécue
Browse files
[.bashrc] Fixing MINUS_CHAR problem
parent
5aec5d83
Changes
1
Hide whitespace changes
Inline
Side-by-side
.bashrc
View file @
b6933be1
...
...
@@ -63,7 +63,7 @@ vcs_formats(){
local
-i
i
# printf is for readability (it's easier to find %s)
msg
=
"(%s)
-
[%s/%s"
msg
=
"(%s)
${
MINUS_CHAR
}
[%s/%s"
msg
=
$(
printf
$msg
$vcs
${
base
/*\/
}
$branch
)
# If there is a revnumber, print it
...
...
@@ -77,12 +77,12 @@ vcs_formats(){
msg
=
"
${
msg
}
|%s"
msg
=
$(
printf
$msg
$action
)
fi
msg
=
"
${
msg
}
]
-
"
msg
=
"
${
msg
}
]
${
MINUS_CHAR
}
"
msgs[1]
=
$msg
# Same shit with colors
msg
=
"
${
nocolor_prompt
}${
vcs_symbols_color
}
(
${
vcs_type_color
}
%s
${
vcs_symbols_color
}
)
${
vcs_sep_color
}
-
${
vcs_symbols_color
}
[
${
vcs_repo_color
}
%s
${
vcs_sep_color
}
/
${
vcs_branch_color
}
%s"
msg
=
"
${
nocolor_prompt
}${
vcs_symbols_color
}
(
${
vcs_type_color
}
%s
${
vcs_symbols_color
}
)
${
vcs_sep_color
}
${
MINUS_CHAR
}
${
vcs_symbols_color
}
[
${
vcs_repo_color
}
%s
${
vcs_sep_color
}
/
${
vcs_branch_color
}
%s"
msg
=
$(
printf
$msg
$vcs
${
base
/*\/
}
$branch
)
if
[
!
-z
${
rev
}
]
;
then
msg
=
"
${
msg
}${
vcs_colon_color
}
:
${
vcs_rev_color
}
%s"
...
...
@@ -92,7 +92,7 @@ vcs_formats(){
msg
=
"
${
msg
}${
nocolor_prompt
}
|
${
vcs_action_color
}
%s"
msg
=
$(
printf
$msg
$action
)
fi
msg
=
"
${
msg
}${
vcs_symbols_color
}
]
${
nocolor_prompt
}
-
"
msg
=
"
${
msg
}${
vcs_symbols_color
}
]
${
nocolor_prompt
}
${
MINUS_CHAR
}
"
msgs[0]
=
$msg
return
0
...
...
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