blob: ae61b8e41559171d0e85440ab0096e82adcbe261 [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
Chih-Wei Huang345e6032015-07-02 00:07:20 +080011alias l='ls'
12alias la='l -a'
13alias ll='l -l'
14alias lo='l -a -l'
15
Jean-Baptiste Queru5155f1c2011-06-16 10:05:28 -070016if (( USER_ID )); then PS1='$'; else PS1='#'; fi
Thorsten Glaser811a5752013-07-25 14:24:45 +000017PS4='[$EPOCHREALTIME] '; PS1='${|
18 local e=$?
Jean-Baptiste Queru5155f1c2011-06-16 10:05:28 -070019
Thorsten Glaser811a5752013-07-25 14:24:45 +000020 (( e )) && REPLY+="$e|"
21
22 return $e
Elliott Hughesd45dd202015-11-02 13:32:07 -080023}$HOSTNAME:${PWD:-?} '"$PS1 "