├── README.md ├── bash └── bash_profile /README.md: -------------------------------------------------------------------------------- 1 | # Bash for Android 2 | 3 | Bash for Android with bash-completion and bash_profile support 4 | 5 | ## Instructions 6 | 7 | In terminal: 8 | 9 | ``` 10 | adb push bash /system/bin/bash_new 11 | adb push bash_profile /sdcard/ 12 | ``` 13 | 14 | In adb shell: 15 | 16 | ``` 17 | chmod +x /system/bin/bash_new 18 | mv /system/bin/sh /system/bin/sh_bak 19 | ln -s /system/bin/bash_new /system/bin/sh 20 | ``` 21 | 22 | ## Credits: 23 | 24 | mzet (bash): http://forum.xda-developers.com/showthread.php?t=537827 -------------------------------------------------------------------------------- /bash: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grantland/android-bash/6d918cfaa25ddab9308fe7285bf0fc3dc69471d9/bash -------------------------------------------------------------------------------- /bash_profile: -------------------------------------------------------------------------------- 1 | ##============================================================================== 2 | # Variables 3 | ##============================================================================== 4 | 5 | USER=root 6 | HOSTNAME=android 7 | 8 | ##============================================================================== 9 | # Command Prompt 10 | ##============================================================================== 11 | 12 | PS1="$USER@$HOSTNAME:\[\e[1;34m\]\w\[\e[22;35m\] \[\e[33m\]# \[\e[0m\]" 13 | 14 | --------------------------------------------------------------------------------