我正在尝试将 ZSH 设置为我的默认 shell,但是它不断恢复为 bash。
我试过这个代码:
sudo chsh -s $(which zsh)
Run Code Online (Sandbox Code Playgroud)
我也试过:
sudo chsh -s /bin/zsh
Run Code Online (Sandbox Code Playgroud)
还尝试了没有 sudo 的这些命令。关于我还需要做什么的任何想法。从 bash 中运行 ZSH 时,它会加载并正常工作,但我想将其设置为默认 shell。
我有一个双显示器设置,并希望只用 recordmydesktop 记录第一个显示器,但我不确定通过命令行执行此操作的设置。到目前为止,我有这个:
recordmydesktop --display=1 --width=1920 height=1080 --fps=15 --no-sound --delay=10
Run Code Online (Sandbox Code Playgroud)
但我收到此错误消息:
Cannot connect to X server 1
Run Code Online (Sandbox Code Playgroud)
如何找到要连接的正确 X 服务器以及我的其余设置是否正确?
我已经更改了~/.zshrc文件中的主题,但是提示中的某些颜色更改文本大小和背景颜色仍为 Ubuntu 默认值。任何人都知道我如何覆盖它以使我的终端钱包 ZSH 具有正确的主题。我的.bashrc看起来像这样
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth
# append to the history file, don't overwrite it
shopt -s histappend
# for setting history length see HISTSIZE …Run Code Online (Sandbox Code Playgroud)