0.1.0 • Published 3 years ago
bcy v0.1.0
bcy
quickly copy the branch name of the current project
Usage
npx bcy
# or
npm i -g bcy
bcybcy
当前分支:feature/bcyPrinciple
branch=$(git branch --show-current);
echo "当前分支:$branch";
echo $branch | tr -d "\n" | pbcopyOther
on Mac You can also use Shell
run the following script
echo "alias bcy='branch=\$(git branch --show-current); echo \"当前分支:\$branch\"; echo \$branch | tr -d \"\\\\n\" | pbcopy'" >> ~/.zshrcthen you can use bcy command
0.1.0
3 years ago