ssh - Windows 终端主题颜色 SSH

标签 ssh themes windows-terminal

我在 WSL 2 中运行 Ubuntu-20.04 并使用 Windows 终端。我正在使用 colorScheme“Dracula”,在我本地的 bash 中,所有内容都完美显示。但是,一旦我通过 SSH 连接到远程计算机,就会显示默认颜色。这使得例如目录很难阅读。

local bash on the left side, ssh into remote server on right side

最佳答案

我已经找到解决办法了。问题不在于配色方案,而在于未设置 dircolors。我将以下内容添加到我的 .bashrc 文件中:

eval `dircolors`

这为我解决了这个问题。

关于ssh - Windows 终端主题颜色 SSH,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62510311/

相关文章:

python - perl ssh 密码

android - Android主题中的windowIsFloating属性

html - 我正在设计的 tumblr 主题中的标题不会响应任何颜色代码

visual-studio-code - 从 VSCode 启动 Windows 终端?

c++ - 使用 system() 执行 ssh 命令

linux - SSH 作为用户允许在 Linux 中进行临时 root 访问

Windows 终端中的 Git Bash 在单独的窗口中打开

bash - 使用 shell 脚本打开新的 Ubuntu 选项卡,然后在这些新选项卡中运行命令

php - 在网页上显示来自 SSH 可访问文件的实时数据的最佳方式

jQuery 对话框主题和样式