blob: d37de12d1ec11b97a43ea0e0f466ae72a6011d2d [file] [log] [blame]
Thorsten Glaserc6476ac2014-07-28 13:18:35 +00001# Copyright (c) 2010, 2012, 2013, 2014
Thorsten Glaserc2dc5de2013-02-18 23:02:51 +00002# Thorsten Glaser <tg@mirbsd.org>
Jean-Baptiste Queru5155f1c2011-06-16 10:05:28 -07003# This file is provided under the same terms as mksh.
4#-
5# Minimal /system/etc/mkshrc for Android
Thorsten Glaserc2dc5de2013-02-18 23:02:51 +00006#
7# Support: https://launchpad.net/mksh
Jean-Baptiste Queru5155f1c2011-06-16 10:05:28 -07008
Josh Gao0e165c52018-03-21 18:03:34 -07009set +o nohup
10
Jean-Baptiste Queru5155f1c2011-06-16 10:05:28 -070011if (( USER_ID )); then PS1='$'; else PS1='#'; fi
Thorsten Glaser811a5752013-07-25 14:24:45 +000012PS4='[$EPOCHREALTIME] '; PS1='${|
13 local e=$?
Jean-Baptiste Queru5155f1c2011-06-16 10:05:28 -070014
Thorsten Glaser811a5752013-07-25 14:24:45 +000015 (( e )) && REPLY+="$e|"
16
17 return $e
Elliott Hughesd45dd202015-11-02 13:32:07 -080018}$HOSTNAME:${PWD:-?} '"$PS1 "