gnome-terminal source的文件

| 评论(1)

以前一直以为gnome-terminal source的是~/.bashrc,今天设置alias时才发现~/.bashrc对gnome-terminal没有效果,一查才知道gnome-terminal是login的shell,source的是~/.bash_profile,所以只需要在~下 ln -s .bashrc .bash_profile就可以让gnome-terminal间接source ~/.bashrc了。

评论(1)

哈哈,gnome-terminal的source确实是.bashrc

.bash_profile是登录x是执行的,如果没有这个文件则会执行.profile,.bash_logout是退出x时执行的文件……

通常我是在.bash_profile里. ~/.bashrc的,呵呵

发表评论

最新日记

cups-1.3.10的打印机问题
前天cups从1.3.9升级到了1.3.…
一个HSV到HTML RGB的颜色脚本
地球人都知道,用HSV模型定义渐近的颜色…
厦大的芙蓉湖
最近突然总想在芙蓉湖边上晃晃。看着湖边的…