# global use of this config: /etc/bash.bashrc # autocomplete command with history search results using arrowup and arrowdown bind '"\e[A": history-search-backward' bind '"\e[B": history-search-forward' # better global history # append history to file instead of overwriting it shopt -s histappend # save and reload the history after each command finishes export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND" # avoid duplicates export HISTCONTROL="ignoreboth:erasedups" # cooler command prompt (virtualenv, git, path shortening) # requires special fonts for displaying the prompt correctly # apt install powerline . /usr/share/powerline/bindings/bash/powerline.sh