From 1158a5f46bf675b270fae0b6bc9ad41241b8cf96 Mon Sep 17 00:00:00 2001 From: Joshua <1041261+JoshuaACasey@users.noreply.github.com> Date: Wed, 26 Jun 2024 06:40:49 -0500 Subject: [PATCH 1/2] Update .bashrc add timestamp to history --- .bashrc | 1 + 1 file changed, 1 insertion(+) diff --git a/.bashrc b/.bashrc index 0e0b79e..0b60c76 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 From 1f56504cc8d112b3382ffcfe21bc910c370d7252 Mon Sep 17 00:00:00 2001 From: Joshua <1041261+JoshuaACasey@users.noreply.github.com> Date: Wed, 26 Jun 2024 06:54:11 -0500 Subject: [PATCH 2/2] Update .bashrc - docker-clean alias alias to cleanup unused docker containers, images, networks, and volumes --- .bashrc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.bashrc b/.bashrc index 0b60c76..2839eff 100644 --- a/.bashrc +++ b/.bashrc @@ -227,6 +227,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 #######################################################