You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NanoDroid/Full/system/etc/bashrc

42 lines
781 B
Bash

# /system/etc/bashrc
export SHELL=${BASH}
7 years ago
5 years ago
if [ -w /data/media/0 ]; then
export HOME="/data/media/0"
elif [ -w /storage/self/primary ]; then
export HOME="/storage/self/primary"
else
export HOME="/sdcard"
fi
export TMPDIR=${HOME}/.bash_tmp
export HISTFILE=${HOME}/.bash_history
mkdir -p ${TMPDIR}
7 years ago
export TERM=xterm
export PAGER=less.bin
7 years ago
[[ $- != *i* ]] && return
shopt -s checkwinsize
7 years ago
shopt -s histappend
alias su="su --shell ${SHELL}"
7 years ago
alias ls="ls --color=auto"
alias grep="grep --color=auto"
7 years ago
red="\[\033[01;38;5;1m\]"
gre="\[\033[01;38;5;2m\]"
blu="\[\033[01;38;5;4m\]"
whi="\[\033[01;38;5;7m\]"
export HOSTNAME=$(getprop ro.product.device)
export PS1="${whi}[ ${blu}\$(whoami) ${whi}@ ${red}${HOSTNAME} ${whi}: ${gre}\w ${whi}] "
7 years ago
resize >/dev/null
clear
cd ${HOME}