1 # Copyright (c) 2010, 2012, 2013, 2014 2 # Thorsten Glaser <tg (a] mirbsd.org> 3 # This file is provided under the same terms as mksh. 4 #- 5 # Minimal /system/etc/mkshrc for Android 6 # 7 # Support: https://launchpad.net/mksh 8 9 : ${HOSTNAME:=$(getprop ro.product.device)} 10 : ${HOSTNAME:=android} 11 export HOSTNAME 12 13 if (( USER_ID )); then PS1='$'; else PS1='#'; fi 14 PS4='[$EPOCHREALTIME] '; PS1='${| 15 local e=$? 16 17 (( e )) && REPLY+="$e|" 18 19 return $e 20 }$HOSTNAME:${PWD:-?} '"$PS1 " 21