From bf7c0f00319b9b92fa3abd9ee3c0093e33f5ffb5 Mon Sep 17 00:00:00 2001 From: frosty Date: Wed, 24 Jul 2024 04:07:40 -0400 Subject: [PATCH] only ls if cd was successful --- .bashrc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.bashrc b/.bashrc index 009c4cd..81d95ee 100644 --- a/.bashrc +++ b/.bashrc @@ -17,8 +17,7 @@ alias ll='ls -l' # List files on 'cd' cd() { - builtin cd "$@" - ls + builtin cd "$@" && ls } # Prompt