mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 03:01:32 +01:00
don't use aliases in function
Signed-off-by: Gaetan Semet <gaetan@xeberon.net>
This commit is contained in:
parent
6e01a3852b
commit
071b14b85d
1 changed files with 2 additions and 2 deletions
|
|
@ -84,7 +84,7 @@ function bb_merge_bottom_branch_to_here()
|
|||
local branch
|
||||
local bottom_branch
|
||||
|
||||
branch=$(git branches | grep "remotes/m/" | cut -d'/' -f5 | cut -d' ' -f1)
|
||||
branch=$(git branch -a| grep "remotes/m/" | cut -d'/' -f5 | cut -d' ' -f1)
|
||||
case $branch in
|
||||
main)
|
||||
bottom_branch="staging"
|
||||
|
|
@ -107,7 +107,7 @@ function bb_push_with_care()
|
|||
local branch
|
||||
local project
|
||||
|
||||
branch=$(git branches | grep "remotes/m/" | cut -d'/' -f5 | cut -d' ' -f1)
|
||||
branch=$(git branch -a | grep "remotes/m/" | cut -d'/' -f5 | cut -d' ' -f1)
|
||||
project=$(git remote -v | grep umg | tail -n 1 | cut -d'/' -f6 | cut -d' ' -f1)
|
||||
|
||||
if [[ -z $project || -z $branch ]]; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue