cra*_*tik 5 windows alias conemu
在 Git-Bash 中,我有一个执行两个命令的别名;更新 git 存储库的分支列表,然后打印它们:
alias glb='git remote update origin --prune && git branch -a'
我如何在 ConEmu 中做到这一点?具体来说,适用于 Windows 的Cmder。
由于ConEmu不使用与引号alias,我要类型alias glb=git remote update origin --prune && git branch -a,其被解释为两个单独的命令,第一alias glb=git remote update origin --prune和然后git branch -a。
Eri*_*orn 12
ConEmu 中的命令分隔符对我来说(在 Windows 上)是:
$t
所以你的例子是:
alias glb=git remote update origin --prune $t git branch -a
注意: 请务必重新启动您的 conemu 窗口或打开一个新选项卡以使其应用。- 感谢@vetras 提醒我。
参考:http : //artandlogic.com/2013/06/making-the-windows-command-prompt-suck-slightly-less/
| 归档时间: |
|
| 查看次数: |
7501 次 |
| 最近记录: |