cqcn1991
V2EX  ›  问与答

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

  •  
  •   cqcn1991 · Feb 2, 2015 · 3350 views
    This topic created in 4125 days ago, the information mentioned may be changed or developed.
    默认的话,就是`~/`, 但是我的网站都放在`~/sites`下面了,每次要切进去,挺烦的

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

    不知道正确的做法是啥?
    6 replies    2015-02-03 14:57:57 +08:00
    wesley
        1
    wesley  
       Feb 2, 2015
    在桌面建个快捷方式
    cqcn1991
        2
    cqcn1991  
    OP
       Feb 2, 2015
    @wesley 我觉得就应该这样搞……不知道具体怎么操作?
    Goooogle
        3
    Goooogle  
       Feb 2, 2015
    gnome-terminal --working-directory=/path
    cqcn1991
        4
    cqcn1991  
    OP
       Feb 3, 2015
    @Goooogle 这是打开一个窗口这样,请问怎么设成默认的?
    Goooogle
        5
    Goooogle  
       Feb 3, 2015
    新建一个.desktop文件
    [Desktop Entry]
    Name=~/sites
    Comment=put your comments here
    Exec=gnome-terminal --working-directory=~/sites
    Type=Application
    Goooogle
        6
    Goooogle  
       Feb 3, 2015
    或者新建个快捷键绑定gnome-terminal --working-directory=/path
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1029 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 19:01 · PVG 03:01 · LAX 12:01 · JFK 15:01
    ♥ Do have faith in what you're doing.