Pprovide a systemless implementation of mkshrc for a better terminal experience on Android devices.
You should after the installation su
in any terminal, to initialize the user/app folders. Every app has its own folder based on his username (/data/mkuser/home/<USER>
).
Install zyedidia/micro
stew install zyedidia/micro
mmrl install -y mkshrc
In MMRL you can use a GUI to change it
Supporting mkshrc for every own magisk module, just simply create <MODID>/system/etc/mkshrc.d/<name>.d.sh
Supported APIs:
sudo
setperm
setperm:insecure
- This method uses root permissions. If you prefer an safer way please use
setperm
- This method uses root permissions. If you prefer an safer way please use
There are more things to import:
How to import:
source $MKLIB/<folder>/<file>.sh
Check if mkshrc is installed
[ -z $MKLIB ] && echo "Source fail!" && exit 122;
# abort <code> <content>
abort 404 "Your file does not exist"
# Available colors: none, red, green, yellow, white, cyan
ui_print cyan "Logged content"
⚠️ This file includes insecure methods
setperm $PREFIX/bin/* $USERID $USERID 0755
# Uses sudo in the backend
setperm:insecure $PREFIX/bin/* $USERID $USERID 0755
sudo ls
⚠️ This file includes insecure methods
grepprop id /data/adb/modules/mkshrc/module.prop
# Uses sudo in the backend
grepprop:insecure id /data/adb/modules/mkshrc/module.prop
Alpha Fox2Code library parts. Thanks for the concept of this!
mkshrc-setenv "TEST_ENV" "Yolo"
mkshrc-getenv "TEST_ENV" # output: Yolo
mkshrc-add-path /data/bin \
/system/bin
Cloudflare
nameserver 1.1.1.1
nameserver 1.0.0.1
nameserver 8.8.4.4
nameserver 8.8.8.8
Already created app environments before 1.3.5
need manually link the xdg-open
binary to thier current environment.
Run this command in your selected app environment
ln -s $MKBIN/open $PREFIX/bin/xdg-open