If you use Fish shell and Emacs, you might also be interested in using vterm, a fully-featured terminal emulator based on libvterm. However, vterm requires some shell-side configuration.
This is a fisher plugin that loads the vterm configuration, if needed.
You can install this plugin using this command:
fisher install pymander/vfish
This adds a number of commands to your vterm sessions.
- vf - Call
find-file
on a file. - vd - Call
dired
on a directory. - vdiff - Call
ediff
on two files.
In addition, if you have z
installed, you can use vz to call dired
on a directory matched
using z's system.
In order to use these commands, however, you must configure
vterm-eval-cmds
in Emacs. Insert this or something similar in your
startup file.
(setq vterm-eval-cmds '(("find-file" find-file)
("message" message)
("vterm-clear-scrollback" vterm-clear-scrollback)
("dired" dired)
("ediff-files" ediff-files)))
Currently, this doesn't work very well with tide, which is a bummer, since tide is the ultimate Fish prompt.