2
0
mirror of https://gitlab.com/Nanolx/NanoDroid synced 2024-11-07 15:20:36 +00:00
NanoDroid/Full/system/etc/bashrc

35 lines
633 B
Bash
Raw Normal View History

# /system/etc/bashrc
export SHELL=${BASH}
2018-01-23 20:11:52 +00:00
export HOME=/sdcard
export TMPDIR=${HOME}/.bash_tmp
export HISTFILE=${HOME}/.bash_history
mkdir -p ${TMPDIR}
2018-01-23 20:11:52 +00:00
export TERM=xterm
export PAGER=less.bin
2018-01-23 20:11:52 +00:00
[[ $- != *i* ]] && return
shopt -s checkwinsize
2018-01-23 20:11:52 +00:00
shopt -s histappend
alias su="su --shell ${SHELL}"
2018-02-07 20:21:09 +00:00
alias ls="ls --color=auto"
2018-02-07 20:22:48 +00:00
alias grep="grep --color=auto"
2018-01-23 20:11:52 +00:00
red="\[\033[01;38;5;1m\]"
gre="\[\033[01;38;5;2m\]"
blu="\[\033[01;38;5;4m\]"
whi="\[\033[01;38;5;7m\]"
2018-02-08 22:05:36 +00:00
export HOSTNAME=$(getprop ro.product.device)
export PS1="${whi}[ ${blu}\$(whoami) ${whi}@ ${red}${HOSTNAME} ${whi}: ${gre}\w ${whi}] "
2018-01-23 20:11:52 +00:00
resize >/dev/null
clear
2018-02-06 20:14:39 +00:00
cd ${HOME}