Skip to content

Instantly share code, notes, and snippets.

@jupiterbjy
Last active June 18, 2024 23:16
Show Gist options
  • Save jupiterbjy/e46b6562aeaf0e55383f52db94255094 to your computer and use it in GitHub Desktop.
Save jupiterbjy/e46b6562aeaf0e55383f52db94255094 to your computer and use it in GitHub Desktop.
make colorless root become red, so it can be 3 times faster bs-tary
#!/bin/bash
# copy .bashrc & .bash_logout first
# https://superuser.com/a/268703/1252755
cp /etc/skel/.bash* ~
# Append the new PS1 setting to .bashrc
echo 'export PS1="\[\e[31m\]\u@\h\[\e[00m\]:\[\e[01;34m\]\w\[\e[00m\]\$ "' >> ~/.bashrc
# Reload the .bashrc to apply changes
source ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment