From 71e05ac396c08e9c9eb7afa5798c435a279685de Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Sat, 12 Sep 2015 10:01:57 +0000 Subject: [PATCH] rc: fix clear-apt-list-cache with the && the operations are aborted in case they don't succeed instead of just continuing until the end. --- rc/bashrc | 2 +- rc/zshrc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rc/bashrc b/rc/bashrc index 77492f62..2b2ac205 100644 --- a/rc/bashrc +++ b/rc/bashrc @@ -552,7 +552,7 @@ alias rcp="rsync -a --progress" alias rmv="rsync -a --progress --remove-source-files" # Clear apt list cache -alias clear-apt-list-cache="cd /var/lib/apt/lists;rm *;cd partial;rm *;cd" +alias clear-apt-list-cache="cd /var/lib/apt/lists && rm * && cd partial && rm * && cd" # Accept all cookies with Lynx, makes browsing easier and # every other browser does this too. diff --git a/rc/zshrc b/rc/zshrc index 33c495d3..f616e713 100644 --- a/rc/zshrc +++ b/rc/zshrc @@ -554,7 +554,7 @@ alias rcp="rsync -a --progress" alias rmv="rsync -a --progress --remove-source-files" # Clear apt list cache -alias clear-apt-list-cache="cd /var/lib/apt/lists;rm *;cd partial;rm *;cd" +alias clear-apt-list-cache="cd /var/lib/apt/lists && rm * && cd partial && rm * && cd" # Accept all cookies with Lynx, makes browsing easier and # every other browser does this too.