# yes, some of these could be inside just .bash_profile, but # whatever, do whatever you want. ulimit -c unlimited export PATH=$HOME/bin:$PATH:/sbin:/usr/sbin export HISTSIZE=10000 export HISTFILESIZE=1000000 export HISTCONTROL=ignoredups:erasedups export command_oriented_history=1 export HISTIGNORE='*poweroff:*init 6:*shutdown -h now:*halt' export VISUAL=vim export EDITOR=vim alias ls="ls -lF --color=tty --sort=ext" alias la="ls -laF --color=tty --sort=ext" alias l="/bin/ls -1 -F --color=tty --sort=ext" alias cp="cp -i" alias mv="mv -i" alias rm="rm -i" alias vi="vim" set -o vi # ^p check for partial match in history bind -m vi-insert "\C-p":dynamic-complete-history # ^n cycle through the list of partial matches bind -m vi-insert "\C-n":menu-complete # ^l clear screen bind -m vi-insert "\C-l":clear-screen # add git branch to PS1 source /etc/bash_completion.d/git export PS1='$(__git_ps1 \(%s\) )[\u@\h \W]\$ '