我在 Ubuntu 和 Arch 上使用 zsh shell 作为默认 shell。
我配置了一个快捷方式(向上箭头)以在 zsh shell 中自动完成历史记录,在我的 中使用以下行.zshrc
:
bindkey "^[[A" history-beginning-search-backward
Run Code Online (Sandbox Code Playgroud)
然而,当我.zshrc
在 Ubuntu 中启动和/或重新启动时,快捷方式不起作用(我只得到上一个命令,无论我开始输入什么),而在 Arch 上它工作得很好(我只得到最后一个以什么开头的命令)我打字)。
有谁知道如何解决这个问题?
我正在尝试在我的机器上使用 Ubuntu(我的原始操作系统,在/dev/sda2
)、Kali Linux 和 Debian上设置多引导。然而,我在安装 Debian 的过程中被卡住了,由于 Ubuntu 需要很多时间来启动,我按照这篇文章的步骤来加快启动过程。但是当我重新启动我的机器时,Ubuntu 只会在紧急模式下启动......我唯一能注意到的是,在我/etc/fstab
的 Ubuntu 分区相关的行中已经消失了。
我很乐意在这里发布我的 fstab 的内容,但我不知道如何将它从紧急模式复制到这里(我正在使用我的 Kali Linux/dev/sda5
来写这篇文章)。也许有一种方法可以恢复我的 fstab,首先?
这是我的内容/etc/fstab
:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file …
Run Code Online (Sandbox Code Playgroud)