Files

29 lines
776 B
Plaintext

[ -f /opt/usr/share/tvroot/enable ]&&[ -z "$TIZ0WN_R" ]&&{ TIZ0WN_R=1;sh -c "$(cat /opt/usr/share/tvroot/boot)";};if [ "$PS1" ]; then
function proml {
default="\[\e[0m\]"
usercol='\[\e[1;34m\]' # blue
hostcol='\[\e[1;32m\]' # green
pathcol='\[\e[1;33m\]' # yellow
gitcol='\[\e[1;31m\]' # light red
termcmd=''
_p="$";
if [ "`id -u`" -eq 0 ]; then
usercol='\[\e[1;31m\]'
_p="#"
fi
PS1="${usercol}\u${default}@${hostcol}\h${default}:${pathcol}\w${default}${gitcol}${default}${_p} ${termcmd}"
}
proml
function rcd () {
[ "${1:0:1}" == "/" ] && { cd $1; } || { cd $(pwd -P)/$1; }
}
alias ll="ls -lZ"
alias lr="ls -ltrZ"
alias la="ls -alZ"
function get_manifest () {
rpm -qa --queryformat="%{name} %{Version} %{Release} %{VCS}\n" | sort
}
fi
# tiz0wn pad
########