Loading

ubuntu杂记

本文主要用来记录在开发和使用ubuntu时需要做的一些小配置修改

ssh使用root账户登录界面无颜色,如果需要更详细的颜色配置可以访问以下网站 https://www.cnblogs.com/bamanzi/p/colorful-shell.html

在~/.bashrc找``` #force_color_prompt=yes```,然后把前面的“#”去掉。

在~/.bash_profile文件内添加以下脚本,并执行source ~/.bash_profile。
# if running bash  
if [ -n "$BASH_VERSION" ]; then  
    # include .bashrc if it exists  
    if [ -f "$HOME/.bashrc" ]; then  
        . "$HOME/.bashrc"  
    fi  
fi
posted @ 2024-05-03 14:16  Chilo  阅读(13)  评论(0)    收藏  举报