diff --git a/.bashrc b/.bashrc index 5347285..d09f5c9 100644 --- a/.bashrc +++ b/.bashrc @@ -30,6 +30,7 @@ if [[ $iatest -gt 0 ]]; then bind "set bell-style visible"; fi # Expand the history size export HISTFILESIZE=10000 export HISTSIZE=500 +export HISTTIMEFORMAT="%F %T" # add timestamp to history # Don't put duplicate lines in the history and do not add lines that start with a space export HISTCONTROL=erasedups:ignoredups:ignorespace @@ -238,6 +239,14 @@ alias clickpaste='sleep 3; xdotool type "$(xclip -o -selection clipboard)"' alias kssh="kitty +kitten ssh" +# alias to cleanup unused docker containers, images, networks, and volumes + +alias docker-clean=' \ + docker container prune -f ; \ + docker image prune -f ; \ + docker network prune -f ; \ + docker volume prune -f ' + ####################################################### # SPECIAL FUNCTIONS #######################################################