小编Hen*_*los的帖子

Gnome 终端和 Zsh:将当前目录保留在新选项卡/窗口上

我正在使用 Zsh 在 Arch 上运行 gnome 3.10.1。我面临的问题是,当我从终端窗口创建新选项卡或窗口时,它会将当前目录重置为我的主目录。

我已经尝试过这个:gnome-terminal: keep track of directory in new tab,但它没有用。

我认为这可能是我的.zshrc文件中的一些配置,因此,我清理了它并只添加了以下行:

. /etc/profile.d/vte.sh
Run Code Online (Sandbox Code Playgroud)

但是,它没有按预期工作。

是的,这个文件存在,这里是它的内容:

# Copyright © 2006 Shaun McCance <shaunm@gnome.org>
# Copyright © 2013 Peter De Wachter <pdewacht@gmail.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at …
Run Code Online (Sandbox Code Playgroud)

gnome zsh cd-command gnome-terminal

12
推荐指数
2
解决办法
7929
查看次数

标签 统计

cd-command ×1

gnome ×1

gnome-terminal ×1

zsh ×1