0.1.0 • Published 9 months ago

bcy v0.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

bcy

quickly copy the branch name of the current project

Usage

npx bcy

# or

npm i -g bcy
bcy

Result

bcy

当前分支:feature/bcy

Principle

branch=$(git branch --show-current);
echo "当前分支:$branch"; 
echo $branch | tr -d "\n" | pbcopy

Other

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'" >> ~/.zshrc

then you can use bcy command

0.1.0

9 months ago