blob: c103d6c564947d294567b2113bbdf37cd3c365c3 [file] [log] [blame]
Captain Throwback5ab59642019-02-07 17:22:49 -05001# Copyright (c) 2010, 2012, 2013, 2014
2# Thorsten Glaser <tg@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: ${TMPDIR:=/tmp}
12export HOSTNAME TMPDIR
13
14if (( USER_ID )); then PS1='$'; else PS1='#'; fi
15PS4='[$EPOCHREALTIME] '; PS1='${|
16 local e=$?
17
18 (( e )) && REPLY+="$e|"
19
20 return $e
21}$HOSTNAME:${PWD:-?} '"$PS1 "