BrJfUsTD
V2EX  ›  问与答

Git Bash 窗口粘贴内容包含换行时不会自动回车

  •  
  •   BrJfUsTD · Sep 5, 2022 · 1561 views
    This topic created in 1534 days ago, the information mentioned may be changed or developed.

    向 Git Bash 窗口粘贴文本时,如果内容包含换行,请问如何设置自动回车?就像 SSH 窗口中粘贴内容那样。

    另外还有个问题,将 Git Bash 图标固定到任务栏后,点击打开会出现另外一个 Git Bash 图标,图标不会像其它软件那样叠加显示,这个有解吗……

    11 replies  •  2022-09-06 21:20:24 +08:00
    Nasei
    Nasei
    Sep 5, 2022
    1
    在 windows terminal 里用 git bash
    BrJfUsTD
    BrJfUsTD
    OP
    Sep 6, 2022
    2
    @Nasei 安装后还能设置吗?似乎只能在安装时选择,Git Bash 选项里没有
    creanme
    creanme
    Sep 6, 2022
    3
    请问啥因为啥功能使用 git bash ?因为 ls, tree 等命令吗?
    creanme
    creanme
    Sep 6, 2022
    4
    @BrJfUsTD 如果你要在 windows terminal 里面使用 git bash ,也许可以直接添加配置
    {
    "guid": "{2ece5bfe-50ed-5f3a-ab87-5cd4baafed2b}",
    "hidden": false,
    "name": "Git Bash",
    "source": "Git"
    },
    BrJfUsTD
    BrJfUsTD
    OP
    Sep 6, 2022
    5
    @creanme 是的,方便用 linux 那些命令,win7 又用不了 wsl
    BrJfUsTD
    BrJfUsTD
    OP
    Sep 6, 2022
    6
    @creanme 请问这个在哪里添加?小白……
    ysc3839
    ysc3839
    Sep 6, 2022 via Android
    7
    第二个问题,也许写个启动器可以解决
    creanme
    creanme
    Sep 6, 2022
    8
    @BrJfUsTD
    1. 安装 windows terminal(后面简称 wt)
    2. 打开 wt 的设置,点击左下角,打开 settings.json
    3. 在 profiles 字段的,list 字段里面添加
    creanme
    creanme
    Sep 6, 2022
    9
    @BrJfUsTD 如果是为了方便使用 linux 那些命令,可以试试 nushell 。跨平台支持 windows 系统。
    BrJfUsTD
    BrJfUsTD
    OP
    Sep 6, 2022
    10
    @creanme 好的,谢谢!我去看看
    Nasei
    Nasei
    Sep 6, 2022
    11
    你是 win7 ?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1252 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 17:27 · PVG 01:27 · LAX 09:27 · JFK 12:27
    ♥ Do have faith in what you're doing.