Difference between revisions of "小代码大作用:电脑开荒代码"

Jump to navigation Jump to search
no edit summary
# 实现黄字 user@server,以区分 server 和 local
export PS1='\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;33m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
</syntaxhighlight>
 
<syntaxhighlight lang="bash" line>
# 显示手动安装的 .deb 包
apt list --installed | grep "local]"
</syntaxhighlight>

Navigation menu