## 事象
以下のように `~` を含む `args` を[[Zellij]]の[[Layouts (Zellij)|Layouts]]で指定する。
```kdl
layout {
default_tab_template {
pane size=1 borderless=true {
plugin location="compact-bar"
}
children
}
tab name="test" {
pane {
command "nvim"
args "~/tmp/dayjs-sandbox/index.ts"
}
}
}
```
`~/tmp/dayjs-sandbox/index.ts` は存在するパスだが、これが[[Neovim]]で新規ファイルとして認識されてしまう。
### 環境
| 対象 | バージョン |
| ---------- | ------ |
| [[Zellij]] | 0.43.1 |
## 原因
`nvim` コマンドの引数として起動すると `~` を認識できないから。
## 解決方法
`zsh -c` などシェルコマンド経由で指定する。
```kdl
layout {
default_tab_template {
pane size=1 borderless=true {
plugin location="compact-bar"
}
children
}
tab name="test" {
pane {
command "zsh"
args "-c" "nvim ~/tmp/dayjs-sandbox/index.ts"
}
}
}
```