mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-27 03:14:56 +01:00
feat: no subshell
This commit is contained in:
parent
5061f0d7eb
commit
5e1c41ed62
1 changed files with 1 additions and 4 deletions
|
|
@ -30,10 +30,7 @@ build_message() {
|
||||||
local i=1
|
local i=1
|
||||||
|
|
||||||
remove_flags() {
|
remove_flags() {
|
||||||
local regex=$(
|
local regex="${(j:|:)_git_commit_flags}"
|
||||||
IFS="|"
|
|
||||||
echo "${_git_commit_flags[*]}"
|
|
||||||
)
|
|
||||||
|
|
||||||
echo $(sed -E "s/\s($regex)\s|\s($regex)$//g" <<<"$1")
|
echo $(sed -E "s/\s($regex)\s|\s($regex)$//g" <<<"$1")
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue