gpt4 book ai didi

Windows 10 WSL bash 别名

转载 作者:行者123 更新时间:2023-12-03 11:12:52 27 4
gpt4 key购买 nike

有没有办法在 Windows 10 上为 WSL Bash 创建别名?

使用 Git Bash,很简单:编辑文件 .bashrc :alias alias-name="command"我已经完成了我的研究,包括这些帖子 1 , 2但找不到答案。

如果那不可能。是否可以将 Git Bash 设置为 Visual Studio Code 中的集成终端?

最佳答案

我被绊倒了,因为我编辑了错误的 .bashrc 文件。在 linux 文件系统 (home/robin/.bashrc) 中有一个,在 windows 文件系统 (c:/users/robin/.bashrc) 中有另一个。我不得不编辑 linux 文件系统中的那个。
现在,当我启动 Windows 终端时,我可以使用我的别名。

关于Windows 10 WSL bash 别名,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46627035/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com