LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 765|回复: 4

emacs中使用shell报警:WARNING: terminal is not fully functional(基本解决)

[复制链接]
发表于 2011-1-5 21:12:36 | 显示全部楼层 |阅读模式
最近在学“神器emacs”想要用它的 M-x shell 替代terminal,

它是打开我默认的bash了,却没有 source  ~/.bash_profile,

而且less下都报警,这个要怎么配置哦?



任何提示或信息都是对我的莫大帮助!

话说其配置选项不亚于内核的,配置起来很爽啊,学习中。。。。。
发表于 2011-1-5 23:10:40 | 显示全部楼层
不知道原因。
可以试试 M-x term 或者 M-x eshell
还可以上 irc.freenode.net 上的 #emacs 看看。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-1-5 23:56:57 | 显示全部楼层
Post by cofairy;2125084
不知道原因。
可以试试 M-x term 或者 M-x eshell
还可以上 irc.freenode.net 上的 #emacs 看看。


嗯,eshell 就不报警了,它开启的也是我默认的bash,同样没有source 我的 .bash_profile

THX!
回复 支持 反对

使用道具 举报

发表于 2011-1-6 09:01:21 | 显示全部楼层
try ansi-term.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-1-6 12:03:04 | 显示全部楼层
Post by deepwhite;2125095
try ansi-term.


ansi-term 会让指定要开启的程序,默认的是/bin/bash 不过要回车,

这个不会报警,没有任何的loading,
eshell 有这些

Loading em-alias...done
Loading em-banner...done
Loading em-basic...done
Loading em-cmpl...done
Loading em-dirs...done
Loading em-glob...done
Loading em-hist...done
Loading em-ls...done
Loading em-prompt...done
Loading em-script...done
Loading em-term...done
Loading em-unix...done

默认设置了很多够用了。。。

其实我就想改里面的PS1而已,其默认ps1的当前目录提示是全名
进入高深度文件夹后占据了一半的横向位置。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表