

 
 <?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	
	>
<channel>
	<title>
	Reacties op: Raspbian: De bash prompt aanpassen	</title>
	<atom:link href="https://raspberrytips.nl/raspbian-de-bash-prompt-aanpassen/feed/" rel="self" type="application/rss+xml" />
	<link>https://raspberrytips.nl/raspbian-de-bash-prompt-aanpassen/</link>
	<description>Raspberry Pi en Raspbian tips</description>
	<lastBuildDate>Sun, 04 Feb 2018 17:15:35 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.1</generator>
	<item>
		<title>
		Door: RGM		</title>
		<link>https://raspberrytips.nl/raspbian-de-bash-prompt-aanpassen/#comment-548</link>

		<dc:creator><![CDATA[RGM]]></dc:creator>
		<pubDate>Sun, 04 Feb 2018 17:15:35 +0000</pubDate>
		<guid isPermaLink="false">https://raspberrytips.nl/?p=1160#comment-548</guid>

					<description><![CDATA[O.A de kleuren veranderen van de prompt naarmate de load veranderd.
Groen - alles oke
Geel - load hoger
Rood - Load hoog
Wit - Je Raspberry is witheet :)
--------------------------

## ~/.bashrc: executed by bash(1) for non-login shells.

## Note: PS1 and umask are already set in /etc/profile. You should not
## need this unless you want different defaults for root.
## PS1=&#039;${debian_chroot:+($debian_chroot)}\h:\w\$ &#039;
## umask 022

HISTCONTROL=ignoreboth
export HISTCONTROL=ignoreboth

## You may uncomment the following lines if you want `ls&#039; to be colorized:

export LS_OPTIONS=&#039;--color=auto&#039;
eval &quot;`dircolors`&quot;
alias ls=&#039;ls $LS_OPTIONS&#039;
alias ll=&#039;ls $LS_OPTIONS -l&#039;
alias l=&#039;ls $LS_OPTIONS -lA&#039;

## Normal Colors
Black=&#039;\e[0;30m&#039;        # Black
Red=&#039;\e[0;31m&#039;          # Red
Green=&#039;\e[0;32m&#039;        # Green
Yellow=&#039;\e[0;33m&#039;       # Yellow
Blue=&#039;\e[0;34m&#039;         # Blue
Purple=&#039;\e[0;35m&#039;       # Purple
Cyan=&#039;\e[0;36m&#039;         # Cyan
White=&#039;\e[0;37m&#039;        # White

## Bold
BBlack=&#039;\e[1;30m&#039;       # Black
BRed=&#039;\e[1;31m&#039;         # Red
BGreen=&#039;\e[1;32m&#039;       # Green
BYellow=&#039;\e[1;33m&#039;      # Yellow
BBlue=&#039;\e[1;34m&#039;        # Blue
BPurple=&#039;\e[1;35m&#039;      # Purple
BCyan=&#039;\e[1;36m&#039;        # Cyan
BWhite=&#039;\e[1;37m&#039;       # White

## Background
On_Black=&#039;\e[40m&#039;       # Black
On_Red=&#039;\e[41m&#039;         # Red
On_Green=&#039;\e[42m&#039;       # Green
On_Yellow=&#039;\e[43m&#039;      # Yellow
On_Blue=&#039;\e[44m&#039;        # Blue
On_Purple=&#039;\e[45m&#039;      # Purple
On_Cyan=&#039;\e[46m&#039;        # Cyan
On_White=&#039;\e[47m&#039;       # White

NC=&quot;\e[m&quot;               # Color Reset

## Some more alias to avoid making mistakes:
alias rm=&#039;rm -i&#039;
alias cp=&#039;cp -i&#039;
alias mv=&#039;mv -i&#039;

let upSeconds=&quot;$(/usr/bin/cut -d. -f1 /proc/uptime)&quot;
let mins=$((${upSeconds}/60%60))
let hours=$((${upSeconds}/3600%24))
let days=$((${upSeconds}/86400))
UPTIME=`printf &quot;%02d dagen, %02d uur en %02d minuten&quot; &quot;$days&quot; &quot;$hours&quot; &quot;$mins&quot;`

echo &quot;Welcome Stranger..&quot;
echo &quot;$(tput setaf 3)
System.............: `uname -srmo`
Date...............: `date +&quot;%A, %e %B %Y, %R Hour&quot;`
Uptime.............: ${UPTIME}
Load...............: `cat /proc/loadavg`
Local IP Addresses.: `ip address list &#124; grep &quot;inet &quot; &#124; grep -v 127.0.0 &#124; cut -d &quot; &quot; -f 6 &#124; cut -d &quot;/&quot; -f 1`
CPU Temperature....: `exec -- /opt/vc/bin/vcgencmd measure_temp &#124; cut -c &quot;6-9&quot;` C
Volt...............: `exec -- vcgencmd measure_volts &#124; cut -c &quot;6-9&quot;` C
Eindhoven Weather..: `curl -s &quot;http://rss.accuweather.com/rss/liveweather_rss.asp?metric=1&#038;locCode=EUR&#124;NL&#124;NL007&#124;EINDHOVEN&quot; &#124; sed -n &#039;/Currently:/ s/.*: \(.*\): \([0-9]*\)\([CF]\).*/\2°\3, \1/p&#039;`
$(tput sgr0)&quot;

echo -------------------
MHZ=$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq)
echo CPU Speed $(($MHZ/1000)) Mhz
echo -------------------

# curl https://ip.appspot.com

echo

#####

#-------------------------------------------------------------
# Shell Prompt - for many examples, see:
#       http://www.debian-administration.org/articles/205
#       http://www.askapache.com/linux/bash-power-prompt.html
#       http://tldp.org/HOWTO/Bash-Prompt-HOWTO
#       https://github.com/nojhan/liquidprompt
#-------------------------------------------------------------
# Current Format: [TIME USER@HOST PWD] &#062;
# TIME:
#    Green     == machine load is low
#    Orange    == machine load is medium
#    Red       == machine load is high
#    ALERT     == machine load is very high
# USER:
#    Cyan      == normal user
#    Orange    == SU to user
#    Red       == root
# HOST:
#    Cyan      == local session
#    Green     == secured remote connection (via ssh)
#    Red       == unsecured remote connection
# PWD:
#    Green     == more than 10% free disk space
#    Orange    == less than 10% free disk space
#    ALERT     == less than 5% free disk space
#    Red       == current user does not have write privileges
#    Cyan      == current filesystem is size zero (like /proc)
# &#062;:
#    White     == no background or suspended jobs in this shell
#    Cyan      == at least one background job in this shell
#    Orange    == at least one suspended job in this shell
#
#    Command is added to the history file each time you hit enter,
#    so it&#039;s available to all shells (using &#039;history -a&#039;).


# Test connection type:
if [ -n &quot;${SSH_CONNECTION}&quot; ]; then
    CNX=${Green}        # Connected on remote machine, via ssh (good).
elif [[ &quot;${DISPLAY%%:0*}&quot; != &quot;&quot; ]]; then
    CNX=${ALERT}        # Connected on remote machine, not via ssh (bad).
else
    CNX=${BCyan}        # Connected on local machine.
fi

# Test user type:
if [[ ${USER} == &quot;root&quot; ]]; then
    SU=${Red}           # User is root.
elif [[ ${USER} != $(logname) ]]; then
    SU=${BRed}          # User is not login user.
else
    SU=${BCyan}         # User is normal (well ... most of us are).
fi


NCPU=$(grep -c &#039;processor&#039; /proc/cpuinfo)    # Number of CPUs
SLOAD=$(( 100*${NCPU} ))        # Small load
MLOAD=$(( 200*${NCPU} ))        # Medium load
XLOAD=$(( 300*${NCPU} ))        # Xlarge load

# Returns system load as percentage, i.e., &#039;40&#039; rather than &#039;0.40)&#039;.
function load()
{
    local SYSLOAD=$(cut -d &quot; &quot; -f1 /proc/loadavg &#124; tr -d &#039;.&#039;)
    # System load of the current host.
    echo $((10#$SYSLOAD))       # Convert to decimal.
}

# Returns a color indicating system load.
function load_color()
{
    local SYSLOAD=$(load)
    if [ ${SYSLOAD} -gt ${XLOAD} ]; then
        echo -en ${ALERT}
    elif [ ${SYSLOAD} -gt ${MLOAD} ]; then
        echo -en ${Red}
    elif [ ${SYSLOAD} -gt ${SLOAD} ]; then
        echo -en ${Yellow}
    else
        echo -en ${Green}
    fi
}

# Returns a color according to free disk space in $PWD.
function disk_color()
{
    if [ ! -w &quot;${PWD}&quot; ] ; then
        echo -en ${Red}
        # No &#039;write&#039; privilege in the current directory.
    elif [ -s &quot;${PWD}&quot; ] ; then
        local used=$(command df -P &quot;$PWD&quot; &#124;
                   awk &#039;END {print $5} {sub(/%/,&quot;&quot;)}&#039;)
        if [ ${used} -gt 95 ]; then
            echo -en ${ALERT}           # Disk almost full (&#062;95%).
        elif [ ${used} -gt 90 ]; then
            echo -en ${BRed}            # Free disk space almost gone.
        else
            echo -en ${Green}           # Free disk space is ok.
        fi
    else
        echo -en ${Cyan}
        # Current directory is size &#039;0&#039; (like /proc, /sys etc).
    fi
}

# Returns a color according to running/suspended jobs.
function job_color()
{
    if [ $(jobs -s &#124; wc -l) -gt &quot;0&quot; ]; then
        echo -en ${BRed}
    elif [ $(jobs -r &#124; wc -l) -gt &quot;0&quot; ] ; then
        echo -en ${BCyan}
    fi
}

# Adds some text in the terminal frame (if applicable).


# Now we construct the prompt.
PROMPT_COMMAND=&quot;history -a&quot;
case ${TERM} in
  *term &#124; rxvt &#124; linux)
        PS1=&quot;\[\$(load_color)\][\A\[${NC}\] &quot;
        # Time of day (with load info):
        PS1=&quot;\[\$(load_color)\][\A\[${NC}\] &quot;
        # User@Host (with connection type info):
        PS1=${PS1}&quot;\[${SU}\]\u\[${NC}\]@\[${CNX}\]\h\[${NC}\] &quot;
        # PWD (with &#039;disk space&#039; info):
        PS1=${PS1}&quot;\[\$(disk_color)\]\W]\[${NC}\] &quot;
        # Prompt (with &#039;job&#039; info):
        PS1=${PS1}&quot;\[\$(job_color)\]&#062;\[${NC}\] &quot;
        # Set title of current xterm:
        PS1=${PS1}&quot;\[\e]0;[\u@\h] \w\a\]&quot;
        ;;
    *)
        PS1=&quot;(\A \u@\h \W) &#062; &quot; # --&#062; PS1=&quot;(\A \u@\h \w) &#062; &quot;
                               # --&#062; Shows full pathname of current dir.
        ;;
esac



export TIMEFORMAT=$&#039;\nreal %3R\tuser %3U\tsys %3S\tpcpu %P\n&#039;
export HISTIGNORE=&quot;&#038;:bg:fg:ll:h&quot;
export HISTTIMEFORMAT=&quot;$(echo -e ${BCyan})[%d/%m %H:%M:%S]$(echo -e ${NC}) &quot;
export HISTCONTROL=ignoredups
export HOSTFILE=$HOME/.hosts    # Put a list of remote hosts in ~/.hosts]]></description>
			<content:encoded><![CDATA[<p>O.A de kleuren veranderen van de prompt naarmate de load veranderd.<br />
Groen &#8211; alles oke<br />
Geel &#8211; load hoger<br />
Rood &#8211; Load hoog<br />
Wit &#8211; Je Raspberry is witheet 🙂<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>## ~/.bashrc: executed by bash(1) for non-login shells.</p>
<p>## Note: PS1 and umask are already set in /etc/profile. You should not<br />
## need this unless you want different defaults for root.<br />
## PS1=&#8217;${debian_chroot:+($debian_chroot)}\h:\w\$ &#8216;<br />
## umask 022</p>
<p>HISTCONTROL=ignoreboth<br />
export HISTCONTROL=ignoreboth</p>
<p>## You may uncomment the following lines if you want `ls&#8217; to be colorized:</p>
<p>export LS_OPTIONS=&#8217;&#8211;color=auto&#8217;<br />
eval &#8220;`dircolors`&#8221;<br />
alias ls=&#8217;ls $LS_OPTIONS&#8217;<br />
alias ll=&#8217;ls $LS_OPTIONS -l&#8217;<br />
alias l=&#8217;ls $LS_OPTIONS -lA&#8217;</p>
<p>## Normal Colors<br />
Black=&#8217;\e[0;30m&#8217;        # Black<br />
Red=&#8217;\e[0;31m&#8217;          # Red<br />
Green=&#8217;\e[0;32m&#8217;        # Green<br />
Yellow=&#8217;\e[0;33m&#8217;       # Yellow<br />
Blue=&#8217;\e[0;34m&#8217;         # Blue<br />
Purple=&#8217;\e[0;35m&#8217;       # Purple<br />
Cyan=&#8217;\e[0;36m&#8217;         # Cyan<br />
White=&#8217;\e[0;37m&#8217;        # White</p>
<p>## Bold<br />
BBlack=&#8217;\e[1;30m&#8217;       # Black<br />
BRed=&#8217;\e[1;31m&#8217;         # Red<br />
BGreen=&#8217;\e[1;32m&#8217;       # Green<br />
BYellow=&#8217;\e[1;33m&#8217;      # Yellow<br />
BBlue=&#8217;\e[1;34m&#8217;        # Blue<br />
BPurple=&#8217;\e[1;35m&#8217;      # Purple<br />
BCyan=&#8217;\e[1;36m&#8217;        # Cyan<br />
BWhite=&#8217;\e[1;37m&#8217;       # White</p>
<p>## Background<br />
On_Black=&#8217;\e[40m&#8217;       # Black<br />
On_Red=&#8217;\e[41m&#8217;         # Red<br />
On_Green=&#8217;\e[42m&#8217;       # Green<br />
On_Yellow=&#8217;\e[43m&#8217;      # Yellow<br />
On_Blue=&#8217;\e[44m&#8217;        # Blue<br />
On_Purple=&#8217;\e[45m&#8217;      # Purple<br />
On_Cyan=&#8217;\e[46m&#8217;        # Cyan<br />
On_White=&#8217;\e[47m&#8217;       # White</p>
<p>NC=&#8221;\e[m&#8221;               # Color Reset</p>
<p>## Some more alias to avoid making mistakes:<br />
alias rm=&#8217;rm -i&#8217;<br />
alias cp=&#8217;cp -i&#8217;<br />
alias mv=&#8217;mv -i&#8217;</p>
<p>let upSeconds=&#8221;$(/usr/bin/cut -d. -f1 /proc/uptime)&#8221;<br />
let mins=$((${upSeconds}/60%60))<br />
let hours=$((${upSeconds}/3600%24))<br />
let days=$((${upSeconds}/86400))<br />
UPTIME=`printf &#8220;%02d dagen, %02d uur en %02d minuten&#8221; &#8220;$days&#8221; &#8220;$hours&#8221; &#8220;$mins&#8221;`</p>
<p>echo &#8220;Welcome Stranger..&#8221;<br />
echo &#8220;$(tput setaf 3)<br />
System&#8230;&#8230;&#8230;&#8230;.: `uname -srmo`<br />
Date&#8230;&#8230;&#8230;&#8230;&#8230;: `date +&#8221;%A, %e %B %Y, %R Hour&#8221;`<br />
Uptime&#8230;&#8230;&#8230;&#8230;.: ${UPTIME}<br />
Load&#8230;&#8230;&#8230;&#8230;&#8230;: `cat /proc/loadavg`<br />
Local IP Addresses.: `ip address list | grep &#8220;inet &#8221; | grep -v 127.0.0 | cut -d &#8221; &#8221; -f 6 | cut -d &#8220;/&#8221; -f 1`<br />
CPU Temperature&#8230;.: `exec &#8212; /opt/vc/bin/vcgencmd measure_temp | cut -c &#8220;6-9&#8243;` C<br />
Volt&#8230;&#8230;&#8230;&#8230;&#8230;: `exec &#8212; vcgencmd measure_volts | cut -c &#8220;6-9&#8243;` C<br />
Eindhoven Weather..: `curl -s &#8220;http://rss.accuweather.com/rss/liveweather_rss.asp?metric=1&amp;locCode=EUR|NL|NL007|EINDHOVEN&#8221; | sed -n &#8216;/Currently:/ s/.*: \(.*\): \([0-9]*\)\([CF]\).*/\2°\3, \1/p&#8217;`<br />
$(tput sgr0)&#8221;</p>
<p>echo &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
MHZ=$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq)<br />
echo CPU Speed $(($MHZ/1000)) Mhz<br />
echo &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p># curl <a href="https://ip.appspot.com" rel="nofollow ugc">https://ip.appspot.com</a></p>
<p>echo</p>
<p>#####</p>
<p>#&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
# Shell Prompt &#8211; for many examples, see:<br />
#       <a href="http://www.debian-administration.org/articles/205" rel="nofollow ugc">http://www.debian-administration.org/articles/205</a><br />
#       <a href="http://www.askapache.com/linux/bash-power-prompt.html" rel="nofollow ugc">http://www.askapache.com/linux/bash-power-prompt.html</a><br />
#       <a href="http://tldp.org/HOWTO/Bash-Prompt-HOWTO" rel="nofollow ugc">http://tldp.org/HOWTO/Bash-Prompt-HOWTO</a><br />
#       <a href="https://github.com/nojhan/liquidprompt" rel="nofollow ugc">https://github.com/nojhan/liquidprompt</a><br />
#&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
# Current Format: [TIME USER@HOST PWD] &gt;<br />
# TIME:<br />
#    Green     == machine load is low<br />
#    Orange    == machine load is medium<br />
#    Red       == machine load is high<br />
#    ALERT     == machine load is very high<br />
# USER:<br />
#    Cyan      == normal user<br />
#    Orange    == SU to user<br />
#    Red       == root<br />
# HOST:<br />
#    Cyan      == local session<br />
#    Green     == secured remote connection (via ssh)<br />
#    Red       == unsecured remote connection<br />
# PWD:<br />
#    Green     == more than 10% free disk space<br />
#    Orange    == less than 10% free disk space<br />
#    ALERT     == less than 5% free disk space<br />
#    Red       == current user does not have write privileges<br />
#    Cyan      == current filesystem is size zero (like /proc)<br />
# &gt;:<br />
#    White     == no background or suspended jobs in this shell<br />
#    Cyan      == at least one background job in this shell<br />
#    Orange    == at least one suspended job in this shell<br />
#<br />
#    Command is added to the history file each time you hit enter,<br />
#    so it&#8217;s available to all shells (using &#8216;history -a&#8217;).</p>
<p># Test connection type:<br />
if [ -n &#8220;${SSH_CONNECTION}&#8221; ]; then<br />
    CNX=${Green}        # Connected on remote machine, via ssh (good).<br />
elif [[ &#8220;${DISPLAY%%:0*}&#8221; != &#8220;&#8221; ]]; then<br />
    CNX=${ALERT}        # Connected on remote machine, not via ssh (bad).<br />
else<br />
    CNX=${BCyan}        # Connected on local machine.<br />
fi</p>
<p># Test user type:<br />
if [[ ${USER} == &#8220;root&#8221; ]]; then<br />
    SU=${Red}           # User is root.<br />
elif [[ ${USER} != $(logname) ]]; then<br />
    SU=${BRed}          # User is not login user.<br />
else<br />
    SU=${BCyan}         # User is normal (well &#8230; most of us are).<br />
fi</p>
<p>NCPU=$(grep -c &#8216;processor&#8217; /proc/cpuinfo)    # Number of CPUs<br />
SLOAD=$(( 100*${NCPU} ))        # Small load<br />
MLOAD=$(( 200*${NCPU} ))        # Medium load<br />
XLOAD=$(( 300*${NCPU} ))        # Xlarge load</p>
<p># Returns system load as percentage, i.e., &#8217;40&#8217; rather than &#8216;0.40)&#8217;.<br />
function load()<br />
{<br />
    local SYSLOAD=$(cut -d &#8221; &#8221; -f1 /proc/loadavg | tr -d &#8216;.&#8217;)<br />
    # System load of the current host.<br />
    echo $((10#$SYSLOAD))       # Convert to decimal.<br />
}</p>
<p># Returns a color indicating system load.<br />
function load_color()<br />
{<br />
    local SYSLOAD=$(load)<br />
    if [ ${SYSLOAD} -gt ${XLOAD} ]; then<br />
        echo -en ${ALERT}<br />
    elif [ ${SYSLOAD} -gt ${MLOAD} ]; then<br />
        echo -en ${Red}<br />
    elif [ ${SYSLOAD} -gt ${SLOAD} ]; then<br />
        echo -en ${Yellow}<br />
    else<br />
        echo -en ${Green}<br />
    fi<br />
}</p>
<p># Returns a color according to free disk space in $PWD.<br />
function disk_color()<br />
{<br />
    if [ ! -w &#8220;${PWD}&#8221; ] ; then<br />
        echo -en ${Red}<br />
        # No &#8216;write&#8217; privilege in the current directory.<br />
    elif [ -s &#8220;${PWD}&#8221; ] ; then<br />
        local used=$(command df -P &#8220;$PWD&#8221; |<br />
                   awk &#8216;END {print $5} {sub(/%/,&#8221;&#8221;)}&#8217;)<br />
        if [ ${used} -gt 95 ]; then<br />
            echo -en ${ALERT}           # Disk almost full (&gt;95%).<br />
        elif [ ${used} -gt 90 ]; then<br />
            echo -en ${BRed}            # Free disk space almost gone.<br />
        else<br />
            echo -en ${Green}           # Free disk space is ok.<br />
        fi<br />
    else<br />
        echo -en ${Cyan}<br />
        # Current directory is size &#8216;0&#8217; (like /proc, /sys etc).<br />
    fi<br />
}</p>
<p># Returns a color according to running/suspended jobs.<br />
function job_color()<br />
{<br />
    if [ $(jobs -s | wc -l) -gt &#8220;0&#8221; ]; then<br />
        echo -en ${BRed}<br />
    elif [ $(jobs -r | wc -l) -gt &#8220;0&#8221; ] ; then<br />
        echo -en ${BCyan}<br />
    fi<br />
}</p>
<p># Adds some text in the terminal frame (if applicable).</p>
<p># Now we construct the prompt.<br />
PROMPT_COMMAND=&#8221;history -a&#8221;<br />
case ${TERM} in<br />
  *term | rxvt | linux)<br />
        PS1=&#8221;\[\$(load_color)\][\A\[${NC}\] &#8221;<br />
        # Time of day (with load info):<br />
        PS1=&#8221;\[\$(load_color)\][\A\[${NC}\] &#8221;<br />
        # User@Host (with connection type info):<br />
        PS1=${PS1}&#8221;\[${SU}\]\u\[${NC}\]@\[${CNX}\]\h\[${NC}\] &#8221;<br />
        # PWD (with &#8216;disk space&#8217; info):<br />
        PS1=${PS1}&#8221;\[\$(disk_color)\]\W]\[${NC}\] &#8221;<br />
        # Prompt (with &#8216;job&#8217; info):<br />
        PS1=${PS1}&#8221;\[\$(job_color)\]&gt;\[${NC}\] &#8221;<br />
        # Set title of current xterm:<br />
        PS1=${PS1}&#8221;\[\e]0;[\u@\h] \w\a\]&#8221;<br />
        ;;<br />
    *)<br />
        PS1=&#8221;(\A \u@\h \W) &gt; &#8221; # &#8211;&gt; PS1=&#8221;(\A \u@\h \w) &gt; &#8221;<br />
                               # &#8211;&gt; Shows full pathname of current dir.<br />
        ;;<br />
esac</p>
<p>export TIMEFORMAT=$&#8217;\nreal %3R\tuser %3U\tsys %3S\tpcpu %P\n&#8217;<br />
export HISTIGNORE=&#8221;&amp;:bg:fg:ll:h&#8221;<br />
export HISTTIMEFORMAT=&#8221;$(echo -e ${BCyan})[%d/%m %H:%M:%S]$(echo -e ${NC}) &#8221;<br />
export HISTCONTROL=ignoredups<br />
export HOSTFILE=$HOME/.hosts    # Put a list of remote hosts in ~/.hosts</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
