X-Git-Url: https://git.shemshak.org/~bandali/configs/blobdiff_plain/6e7c85a844b1e38dc6c2af476d2fd4e850c04bfd..edb9a03a2fb953b707f286a6d944e6cf0b8fae82:/.bashrc?ds=sidebyside diff --git a/.bashrc b/.bashrc index a2763dc..cce2dc8 100644 --- a/.bashrc +++ b/.bashrc @@ -1,5 +1,12 @@ -# 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' @@ -21,6 +28,10 @@ aur() { # 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