if [ $(whoami) == "shell" ];then
  su -c bash
else
  if [ $(pwd) == "/" ];then
    cd /data/media/0
  fi
fi

alias l='ls -lisatr'
alias ll='ls -lisa'

HISTCONTROL=ignoredups:ignorespace

# append to the history file, don't overwrite it
shopt -s histappend

# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=5000
HISTFILESIZE=100000
HISTFILE=~/.bash_history

#### related to key bindings ####
# search history with "control" + "cursor up" or "cursor down"
# this depends on the keyboard settings
bind '"\e[1;5A":history-search-backward'
bind '"\e[1;5B":history-search-forward'

bind '"\e[1;5C":forward-word'
bind '"\e[1;5D":backward-word'

stty -echoctl

