KeyDive/docs/shell.sh

37 lines
680 B
Bash
Raw Normal View History

2024-04-14 17:11:26 +00:00
# Env
export PATH='/sbin:/system/sbin:/product/bin:/apex/com.android.runtime/bin:/system/bin:/system/xbin:/odm/bin:/vendor/bin:/vendor/xbin'
2024-03-30 19:03:15 +00:00
2024-04-14 17:11:26 +00:00
# Path
export TMP='/data/local/tmp/'
export APP='/data/data'
export LOCAL='/storage/emulated/0'
export WIFI='/data/misc/wifi'
# Color
2024-03-30 19:03:15 +00:00
alias ls='ls --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
alias logcat='logcat -v color'
2024-04-14 17:11:26 +00:00
alias ip='ip -c'
2024-03-30 19:03:15 +00:00
2024-04-14 17:11:26 +00:00
# Custom
2024-03-30 19:03:15 +00:00
alias ll='ls -alF'
alias la='ls -A'
2024-04-14 17:11:26 +00:00
2024-03-30 19:03:15 +00:00
alias l='ls -CF'
2024-04-14 17:11:26 +00:00
alias ipa='ip a'
2024-03-30 19:03:15 +00:00
alias rm='rm -rf'
2024-04-14 17:11:26 +00:00
# Extra
2024-03-30 19:03:15 +00:00
tree() {
path=${1:-.}
find ${path} -print | sort | sed 's;[^/]*/;|---;g;s;---|; |;g'
}
2024-04-14 17:11:26 +00:00
man() {
${1} --help
}
2024-04-06 13:24:58 +00:00
clear