我正在使用 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)