关于为ip命令配置终端颜色补全的技术咨询
为ip命令配置终端颜色补全的技术咨询
各位大佬好,我有两台电脑:一台家用、一台办公用,都是Ubuntu 22.04.05系统,不过家用的是两周前刚安装的。我一直在用自己自定义的.bashrc、.inputrc和.profile配置文件,先把我的.bashrc内容贴出来给大家参考:
GREEN="\e[92m" RESET_COLOR="\e[0m" git_branch() { BRANCH=$(git branch 2>/dev/null | grep '^*' | sed 's/* //') if [ -z "$BRANCH" ]; then echo "" else echo " $BRANCH" fi } # If not running interactively, don't do anything [[ $- != *i* ]] && return # don't put duplicate lines or lines starting with space in the history. #HISTCONTROL=ignoreboth # append to the history file, don't overwrite it shopt -s histappend HISTSIZE=1000 HISTFILESIZE=2000 # check the window size after each command and, if necessary, # update the values of LINES and COLUMNS. shopt -s checkwinsize # enable programmable completion features (you don't need to enable # this, if it's already enabled i...
现在我想给ip命令配置终端颜色补全,不知道该怎么修改现有配置或者添加新的设置,希望有经验的朋友能给我一些指导和建议,谢谢大家!
备注:内容来源于stack exchange,提问作者Veler Jevsky
相关产品推荐
相关产品推荐

