This module edits the file system/etc/mkshrc
Which works the same as .bashrc
/.zshrc
on a Linux machine running bash or zsh respectively.
- Install the module from releases, then reboot.
- Navigate to /sdcard to find .aliases
- This module should be universal so if you have any issues don't hesitate to create an issue on GitHub and I'll look into it ASAP.
- Magisk 20.4+
- For bash, install the ccbins module by Zackptg5
- For proper busybox access as non-root user, it's recommended to install busybox module by Osm0sis
- Apps with scoped storage (such as temrius) cannot access /sdcard. You may need to copy the rc files from /sdcard to their local private storage directory as root and change paths accordingly
The module creates a backup of .aliases every time it's flashed. If you've made custom changes simply them back over to the updated files.
${USER:=$(getprop ro.product.device)}
- Make sure the username is the device name as opposed to u0_086ba or something similar.
- cdn [N]
- cd back N number of dirs.
- e.g.
$ cdn 1
==$ cd ../
- setpriority [overlay] [high|low]
- Change the priority of a specified overlay.
- e.g.
$ setpriority android.OutlineExtensions.EtherealColorPaletteLightPastelPurple high
- adbfi [on|off|stats]
- enable/disable adb over wifi with one command.
- e.g.
$ adbfi on
- overlay [list|enable|disable] [arg]
- find package names matching [arg] (case insensitive) then will [list|enable|disable] all matching overlays
- e.g.
overlay list ethereal
- aflinger =
$ sudo dumpsys media.audio_flinger
- Get a dumpsys of media.audio_flinger, useful for trouble shooting audio issues.
- bsu =
$ su -s bash
- Open a bash shell with superuser privelages.
- dservice =
$ sudo dumpsys media.dolby_memoryservice
- Grabs a system dump of Dolbys memory service.
- getperms =
$ pm get-privapp-permissions $1
- List all privileged permissions for a specified package.
- getdenyperms =
$ pm get-privapp-deny-permissions $1
- Lists all denied privelaged permissions for a specified package.
- killice =
$ sudo killall dk.icepower.icesound
- Usefull if you have ICESound installed to easily kill the service and test if it's processing.
- l =
$ ls --group-directories-first
- Sorts with folders first. Will use Magisks busybox for ls if detected. If not, will use default ls without the --group-directories-first parameter.
- nano =
$ nano -l
- Adds line numbers to the nano GUI.
- sbash =
$ . /system/etc/bash/bashrc
- Sources the bashrc file, useful if you've made changes to .aliases or .bashrc.
- sudo =
$ su -c "$@"
- Executes commands as superuser.
- vd =
$ cd
- Fat thumbs + small dpi = annoying ;_;
- update to latest Magisk module template
- fixes for magisk 25.x
- fixed/removed some aliases
- removed bashrc - now included in ccbins with it's bash binary
- updates for A12
- workaround for termius' scoped storage
- update to latest Magisk module template
- add
createaliases
command which will create/update /sdcard/.gnualiases to add aliases for the commands added from the gnu utils module - cp and mv have been aliased to always use the -g flag to show the progress bar when the gnu Utils module is installed
- fix functions which used the $root variable
- hopefully fix the
$PS1
clipping issue - oops, last update I forgot to rename
/sdcard
to<SDCARD>
- add
/sbin
back to$PATH
- change all uses of
sudo
in .aliases to$ROOT
- fix all broken aliases and functions (overlay function now works flawlessly)
- add support for /sdcard/.customrc for any specific additions which will persist with updates
- new template is Magisk only so let's remove the Magisk checks
- add check to prepend
su -c
to commands when not running as root and without it when running as root
- misc improvements and bug fixes
- switch to updated magisk module template
- remove bash from the module - just use Zackptg5s bash installer
- Unity 3.3 update
- better handling of updating .bashrc and .aliases
- Unity 3.1 update
- add setpriority and adbfi functions
- add getperms and getdenyperms aliases (technically they're functions because reasons)
- minMagisk to 1530 and make sure the old magisk path is able to be used
- general improvements
- update readme
- update template to Unity 1.8.2
- fix bug with the colours in the PS1 that caused issues with long commands
- update mkshrc and .bashrc to reflect the path changes in Magisk 18
- slight readme update
- Unity 1.7.2 update
- Add the bash binary again (compiled by @SphericalKat)
- Update to Unity 1.7.1
- Add /sbin to $PATH
- Update for Unity 1.7 and magisk 17.
- Fix sed_files function. (will now correctly sed system/etc/bash/bashrc to source /sdcard/.bashrc)
- Only copy .aliases and .bashrc to /sdcard if they don't already exist.
- Update to latest Unity template.
- Small updates to the install. (Only installs bash files if bash is detected)
- Remove $EXTERNAL_STORAGE var and replace with a dynamic $SDCARD var that gets set with sed.
- Remove bash binary.
- Sort README.
- New bash $PS1. It's sexy af.
- Added bsu and sbash aliases.
- Add bash binary (set "/system/xbin/bash -" as your command line in your terminal app to use bash by default.
- Add $EXTERNAL_STORAGE/.bashrc and $EXTERNAL_STORAGE/.aliases for simplified command line changes.
- l looks nice and is sorted better now.
- Add '.' to $PATH so the current directory can be executed in.
- Add dservice alias (useful if you have Atmos)
- Add killice alias (Primarily for myself)
- Inital version