shell命令行ls指令不显示颜色
在bashrc中添加,或移除以下内容前面的注释号即可
$ vi ~/.bashrc
# You may uncomment the following lines if you want `ls' to be colorized:
export LS_OPTIONS='--color=auto'
eval "`dircolors`"
alias ls='ls $LS_OPTIONS'
alias ll='ls $LS_OPTIONS -l'
alias l='ls $LS_OPTIONS -lA'
$ source ~/.bashrc
Git需要重复输入账号密码
进入项目目录,输入以下指令:
$ git config --global credential.helper store
本文介绍了如何在Bash配置中启用`ls`命令的颜色显示,并解决Git频繁要求输入账号密码的问题。只需修改`.bashrc`文件并设置`git config --global credential.helper`。
980

被折叠的 条评论
为什么被折叠?



