Skip to content

Instantly share code, notes, and snippets.

@5chdn
Created May 27, 2016 08:20
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 6 You must be signed in to fork a gist
  • Save 5chdn/a53eba8aa05f53f8e72abe6e5fe28c3c to your computer and use it in GitHub Desktop.
Save 5chdn/a53eba8aa05f53f8e72abe6e5fe28c3c to your computer and use it in GitHub Desktop.
termux bash.bashrc
PS1="\[\033[0;37m\]\$? \$(if [[ \$? == 0 ]]; then echo \"\[\033[0;32m\]\342\234\223\"; else echo \"\[\033[01;31m\]\342\234\227\"; fi) $(if [[ ${EUID} == 0 ]]; then echo '\[\033[0;31m\]\u@\h'; else echo '\[\033[0;32m\]\u@\h'; fi)\[\033[0;34m\] \w \$\[\033[00m\] "
eval "`dircolors`"
alias ls='ls --color=auto'
alias ll='ls --color=auto -lshaF'
alias grep='grep --color=auto'
alias fbig="find . -size +128M -type f -printf '%s %p\n'| sort -nr | head -16"
alias rdir='mkdir -p ./$(cat /dev/urandom | tr -cd 'a-z0-9' | head -c 8)/$(cat /dev/urandom | tr -cd 'a-z0-9' | head -c 4)/'
export HISTCONTROL=ignoredups:erasedups
export HISTSIZE=100000
export HISTFILESIZE=100000
shopt -s histappend
export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND"
shopt -s checkwinsize
if [ -f ~/.git-completion.bash ]; then
. ~/.git-completion.bash
fi
@ChandraFernandez
Copy link

thanks

@9990242854
Copy link

Good thanks for this

@9990242854
Copy link

bash: dircolors: command not found
0 ✓ u0_a1057@localhost ~ $

@r1riyad
Copy link

r1riyad commented Jun 30, 2019

Issue : bash: dircolors: command not found

Solution : pkg install coreutils

Then restart termux! The problem will be fixed!

@mfeless
Copy link

mfeless commented Aug 25, 2019

Good thanks bro

@micbaniak
Copy link

many thanks camarade

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment