From 61de34fdb43b6078ffba9f0bd968c71a50bdb713 Mon Sep 17 00:00:00 2001 From: Brad Ganley Date: Sat, 8 Apr 2023 21:33:14 -0500 Subject: [PATCH] better cd --- .bashlocal | 1 + .bashrc | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 .bashlocal diff --git a/.bashlocal b/.bashlocal new file mode 100644 index 0000000..d27d1e5 --- /dev/null +++ b/.bashlocal @@ -0,0 +1 @@ +$DOCKER_COMPOSE_COMMAND="docker-compose" diff --git a/.bashrc b/.bashrc index 39ba3d2..56a0430 100644 --- a/.bashrc +++ b/.bashrc @@ -3,7 +3,13 @@ ########################################################## alias sudo='sudo ' +#what cd should do by default +alias cd='cd_func' +cd_func () +{ + builtin cd "$@" && ls --color=auto --group-directories-first --format=single-column +} # If not running interactively, don't do anything case $- in *i*) ;;