如何在当前目录中打开终端? [英] How to open terminal in current directory?

查看:300
本文介绍了如何在当前目录中打开终端?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用M-x Shell打开新终端时,有时会将当前目录设置为文件所在的位置,但有时不会。那么有没有功能可以始终在当前目录中打开新终端?

When i use M-x shell to open a new terminal, it will sometimes set the current directory to the file in. But sometimes it won't. So is there a function to always open a new terminal in current directory?

推荐答案

有软件包 shell -这里在ELPA中可用: MX列表包,在 shell-here 中查找,标记安装( i )并执行( x )。

There's the package shell-here available in ELPA: M-x list-packages, look for shell-here, mark for install (i) and execute (x).

自述文件的摘录:

Open a shell buffer in (or relative to) default-directory,
e.g. whatever directory the current buffer is in. If you have
find-file-in-project installed, you can also move around relative
to the root of the current project.

I use Emacs shell buffers for everything, and shell-here is great
for getting where you need to quickly. The =find-file-in-project=
integration makes it very easy to manage multiple shells and
maintain your path / history / scrollback when switching between
projects.

github主页: https://github.com/ieure/shell-here

github home: https://github.com/ieure/shell-here

我喜欢 shell- pop ,也可以轻松弹出并弹出一个shell缓冲区窗口。而且ELPA可能还有更多!

And I like shell-pop too, to pop up and pop out a shell buffer window with one easily. And there's maybe more in ELPA !

这篇关于如何在当前目录中打开终端?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆