在 zsh 中我可以这样
#!/bin/zsh cmd="cd /special/dir" print -s $cmd" # save command in history for reuse
这样的我的 history 中就会有一个 cd /special/dir 历史。
在 fish shell 该怎么搞? ~