We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
你可以直接在touch bar中使用git status, git add ., git commit -m "", git pull, git push, git switch main,git switch master和git switch develop,只需要点击一下就行,非常方便
git status
git add .
git commit -m ""
git pull
git push
git switch main
git switch master
git switch develop
配置非常简单,但在第一次尝试时可能需要一些时间才能弄清楚
打开iTerm2,选择菜单iTerm2 -> Preferences -> Keys
iTerm2
Preferences
Keys
然后选择Add Touch Bar Item,输入git status,选择Send text with vim special chars,然后在底部字段中写入git status\n,点击OK完成添加
Add Touch Bar Item
Send text with vim special chars
git status\n
OK
对您想要的所有其他 git 命令重复此操作。在底部字段中输入git commit -m ""\u0002,这会将文本git commit -m ""发送到控制台,然后发送一个左箭头,使光标位于引号内,然后您可以编写提交消息并按下回车提交
git commit -m ""\u0002
然后选择View -> Customize Touch Bar...并将新命令拖到触摸栏
View
Customize Touch Bar...
就这些!希望对你有帮助
原文链接:https://refruity.xyz/macbook-touch-bar-in-iterm2/
The text was updated successfully, but these errors were encountered:
No branches or pull requests
你可以直接在touch bar中使用
git status
,git add .
,git commit -m ""
,git pull
,git push
,git switch main
,git switch master
和git switch develop
,只需要点击一下就行,非常方便配置非常简单,但在第一次尝试时可能需要一些时间才能弄清楚
打开iTerm2,选择菜单
iTerm2
->Preferences
->Keys
然后选择
Add Touch Bar Item
,输入git status
,选择Send text with vim special chars
,然后在底部字段中写入git status\n
,点击OK
完成添加对您想要的所有其他 git 命令重复此操作。在底部字段中输入
git commit -m ""\u0002
,这会将文本git commit -m ""
发送到控制台,然后发送一个左箭头,使光标位于引号内,然后您可以编写提交消息并按下回车提交然后选择
View
->Customize Touch Bar...
并将新命令拖到触摸栏就这些!希望对你有帮助
原文链接:https://refruity.xyz/macbook-touch-bar-in-iterm2/
The text was updated successfully, but these errors were encountered: