Executing a script when Konsole runs
in vi .bashrc (/home/shelton/.bashrc) (or for root /root/.bashrc)
export PS1="\[\033[44;1;31m\][\u@\h:\w (\$(chkMntCount))]\$"
The first [...] is for colour coding
The Second [...] is to display user and machine name
this is followed by the chkMntCount script which is located in /usr/bin
Contents of chkMntCount is:
tune2fs -l /dev/hda3 | grep "Mount count"
tune2fs -l /dev/hda3 | grep "Maximum mount count"
export PS1="\[\033[44;1;31m\][\u@\h:\w (\$(chkMntCount))]\$"
The first [...] is for colour coding
The Second [...] is to display user and machine name
this is followed by the chkMntCount script which is located in /usr/bin
Contents of chkMntCount is:
tune2fs -l /dev/hda3 | grep "Mount count"
tune2fs -l /dev/hda3 | grep "Maximum mount count"
0 Comments:
Post a Comment
<< Home