mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-30 02:44:42 +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
|
||||
|
||||
remove_flags() {
|
||||
local regex=$(
|
||||
IFS="|"
|
||||
echo "${_git_commit_flags[*]}"
|
||||
)
|
||||
local regex="${(j:|:)_git_commit_flags}"
|
||||
|
||||
echo $(sed -E "s/\s($regex)\s|\s($regex)$//g" <<<"$1")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue