V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
cqcn1991
V2EX  ›  问与答

Ubuntu 下 Terminal,怎么设置开始的位置?

  •  
  •   cqcn1991 · 2015-02-02 21:42:47 +08:00 · 2923 次点击
    这是一个创建于 3376 天前的主题,其中的信息可能已经有所发展或是发生改变。
    默认的话,就是`~/`, 但是我的网站都放在`~/sites`下面了,每次要切进去,挺烦的

    如果是在`~/.bashrc`最后,加一行`cd ~/sites`的话,那么按ctrl+shift+t,就无法在当前位置新建tab,每次都回到了`~/sites`, 所以不想用这个做法

    不知道正确的做法是啥?
    6 条回复    2015-02-03 14:57:57 +08:00
    wesley
        1
    wesley  
       2015-02-02 22:12:31 +08:00
    在桌面建个快捷方式
    cqcn1991
        2
    cqcn1991  
    OP
       2015-02-02 22:16:17 +08:00
    @wesley 我觉得就应该这样搞……不知道具体怎么操作?
    Goooogle
        3
    Goooogle  
       2015-02-02 22:52:33 +08:00
    gnome-terminal --working-directory=/path
    cqcn1991
        4
    cqcn1991  
    OP
       2015-02-03 13:20:50 +08:00
    @Goooogle 这是打开一个窗口这样,请问怎么设成默认的?
    Goooogle
        5
    Goooogle  
       2015-02-03 14:52:06 +08:00
    新建一个.desktop文件
    [Desktop Entry]
    Name=~/sites
    Comment=put your comments here
    Exec=gnome-terminal --working-directory=~/sites
    Type=Application
    Goooogle
        6
    Goooogle  
       2015-02-03 14:57:57 +08:00
    或者新建个快捷键绑定gnome-terminal --working-directory=/path
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1969 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 01:24 · PVG 09:24 · LAX 18:24 · JFK 21:24
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.