From fff6e08b72979a630f53211db76299977159bbb3 Mon Sep 17 00:00:00 2001 From: "xiongdian.me" Date: Tue, 29 Nov 2022 20:10:29 +0800 Subject: [PATCH] dfs err_return --- .zshrc2 | 1 + 1 file changed, 1 insertion(+) diff --git a/.zshrc2 b/.zshrc2 index 0b957b8..17737fb 100644 --- a/.zshrc2 +++ b/.zshrc2 @@ -151,6 +151,7 @@ bindkey "\ed" delete-char # alt+d # dfs dfs() { + setopt local_options err_return pipe_fail case $1 in cd ) cd "$DOTFILES" ;; update ) "$DOTFILES/update.sh" ;;