github / github/copilot-cli

Bash/Zsh aliases should be visible by the copilot ! command

オープン
#1,124 コメント 1 件 リアクション 2 件 担当者 0 名 GitHub で見る
area:tools
主要言語
Shell
スター
11.2k
フォーク
1.9k
平均マージ
14時間 16分
マージ済み PR(30日)
6

説明

### Describe the feature or problem you'd like to solve

_No response_

### Proposed solution

When using the `!` command in copilot, aliases are not accessible.

### Example prompts or workflows

Check the available aliases

```shell
$ alias

l='ls -lah'
la='ls -lAh'
ll='ls -lh'
ls='ls -G'
lsa='ls -lah'
md='mkdir -p'
```

Running any of these aliases in a terminal works fine:

```shell
$ ll

total 120
-rw-r--r-- 1 agoncal staff 1.5K Nov 26 2024 properties.tmp
-rw-r--r-- 1 agoncal staff 11K Nov 26 2024 LICENSE
```

Now, start copilot and execute an alias with the `!` command. It fails:

```shell
$ copilot

❯ ! ll
╭────────────────────────────────────────────────╮
│ /bin/sh: ll: command not found │
│ │
╰────────────────────────────────────────────────╯
```

### Additional context

- copilot v0.0.394
- macOS Sequoia 15.7.3
- bash --version 3.2.57(1)-release
- zsh --version 5.9

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。