Additions to stock files
Remote user prompt
# Setup different prompt colors for local/remote and root/non-root users NORMAL="\[\e[0m\]" RED="\[\e[1;31m\]" GREEN="\[\e[1;32m\]" YELLOW="\[\e[1;33m\]" MAGENTA="\[\e[1;35m\]" CYAN="\[\e[1;36m\]" # Set local prompt color if [[ $EUID == 0 ]] ; then if [[ $TERM == "screen" ]] ; then PS1="$RED\u [ $NORMAL\w$RED ] (screen)# $NORMAL" else PS1="$RED\u [ $NORMAL\w$RED ]# $NORMAL" fi else if [[ $TERM == "screen" ]] ; then PS1="$YELLOW\w [ $NORMAL\w$YELLOW] (screen)\$ $NORMAL" else PS1="$GREEN\u [ $NORMAL\w$GREEN ]\$ $NORMAL" fi fi # Set remote prompt if [[ "$SSH_CLIENT" != "" ]] ; then if [[ $EUID == 0 ]] ; then if [[ $TERM == "screen" ]] ; then PS1="$MAGENTA\u@\h [ $NORMAL\w$MAGENTA ] (screen)# $NORMAL" else PS1="$MAGENTA\u@\h [ $NORMAL\w$MAGENTA ]# $NORMAL" fi else if [[ $TERM == "screen" ]] ; then PS1="$CYAN\u@\h [ $NORMAL\w$CYAN ] (screen)\$ $NORMAL" else PS1="$CYAN\u@\h [ $NORMAL\w$CYAN ]\$ $NORMAL" fi fi fi unset RED GREEN MAGENTA YELLOW CYAN NORMAL
Bash Shell Startup Files
bash-completions
Download the installation package from https://github.com/scop/bash-completion/releases/download/2.11/bash-completion-2.11.tar.xz
./configure --prefix=/usr --sysconfdir=/etc make sudo make install
Last modified
9 months ago
Last modified on 12/20/2023 04:19:59 PM
Note:
See TracWiki
for help on using the wiki.