OSDN Git Service

mkshrc: add back the aliases I like
[android-x86/external-mksh.git] / mkshrc
1 # 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 set +o nohup
10
11 alias l='ls'
12 alias la='l -a'
13 alias ll='l -l'
14 alias lo='l -a -l'
15
16 if (( USER_ID )); then PS1='$'; else PS1='#'; fi
17 PS4='[$EPOCHREALTIME] '; PS1='${|
18         local e=$?
19
20         (( e )) && REPLY+="$e|"
21
22         return $e
23 }$HOSTNAME:${PWD:-?} '"$PS1 "