-# If not running interactively, don't do anything
-# [[ $- != *i* ]] && return
+# various bash tweaks
+shopt -s histappend
+shopt -s cmdhist
+HISTSIZE=
+HISTFILESIZE=
+HISTCONTROL=ignoreboth
+HISTIGNORE='ls:l:s:bg:fg:history'
+HISTTIMEFORMAT='%F %T '
+stty stop ""
# aliases
alias ls='ls --color=auto'
# echo -e "\033[5 q" # blinking
echo -e "\033[6 q" # non-blinking
+
+# If not running interactively, don't do anything else
+[[ $- != *i* ]] && return
+
a_prompt() {
cwd=$(pwd | sed -e "s!$HOME!~!" | sed -re "s!([^/])[^/]+/!\1/!g")
printf $cwd