Thorsten Glaser | c6476ac | 2014-07-28 13:18:35 +0000 | [diff] [blame] | 1 | # Copyright (c) 2010, 2012, 2013, 2014 |
Thorsten Glaser | c2dc5de | 2013-02-18 23:02:51 +0000 | [diff] [blame] | 2 | # Thorsten Glaser <tg@mirbsd.org> |
Jean-Baptiste Queru | 5155f1c | 2011-06-16 10:05:28 -0700 | [diff] [blame] | 3 | # This file is provided under the same terms as mksh. |
| 4 | #- |
| 5 | # Minimal /system/etc/mkshrc for Android |
Thorsten Glaser | c2dc5de | 2013-02-18 23:02:51 +0000 | [diff] [blame] | 6 | # |
| 7 | # Support: https://launchpad.net/mksh |
Jean-Baptiste Queru | 5155f1c | 2011-06-16 10:05:28 -0700 | [diff] [blame] | 8 | |
Josh Gao | 0e165c5 | 2018-03-21 18:03:34 -0700 | [diff] [blame] | 9 | set +o nohup |
| 10 | |
Jean-Baptiste Queru | 5155f1c | 2011-06-16 10:05:28 -0700 | [diff] [blame] | 11 | if (( USER_ID )); then PS1='$'; else PS1='#'; fi |
Thorsten Glaser | 811a575 | 2013-07-25 14:24:45 +0000 | [diff] [blame] | 12 | PS4='[$EPOCHREALTIME] '; PS1='${| |
| 13 | local e=$? |
Jean-Baptiste Queru | 5155f1c | 2011-06-16 10:05:28 -0700 | [diff] [blame] | 14 | |
Thorsten Glaser | 811a575 | 2013-07-25 14:24:45 +0000 | [diff] [blame] | 15 | (( e )) && REPLY+="$e|" |
| 16 | |
| 17 | return $e |
Elliott Hughes | d45dd20 | 2015-11-02 13:32:07 -0800 | [diff] [blame] | 18 | }$HOSTNAME:${PWD:-?} '"$PS1 " |