Eugeny / tabby

A terminal for a more modern age
https://tabby.sh
MIT License
59.65k stars 3.4k forks source link

Login script regular match how is wrong, can you give an example #9632

Open zxuanhong opened 6 months ago

zxuanhong commented 6 months ago
  1. Login script regular match how is wrong, can you give an example
  2. For example,Login matches the end of the string:
    ]#
    ]$
    :~#
    :~$
  3. Script to be executed after the match is successful
    export PS1="$PS1\\[\\e]1337;CurrentDir="'$(pwd)\\a\\]'
Moexin commented 4 months ago

image

zxuanhong commented 4 months ago

@Moexin 是的,我是选择的这个,但是实际下来并不生效,所以才希望能给个例子。

Moexin commented 4 months ago

@Moexin 是的,我是选择的这个,但是实际下来并不生效,所以才希望能给个例子。

我的直接就生效了 Expect那块不填 中间填 export PS1="$PS1\\[\\e]1337;CurrentDir="'$(pwd)\\a\\]' 后面只需要勾选正则表达式,其他多余的对勾给他取消掉再试试