From 6b945219e1ce9e21add9b28a829caaed628e0eca Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Mon, 17 Jun 2024 20:57:58 -0700 Subject: [PATCH] add global alias to `SWAP` stdout and stderr --- home/zshrc | 1 + 1 file changed, 1 insertion(+) diff --git a/home/zshrc b/home/zshrc index 9df69a7..7b02ef2 100644 --- a/home/zshrc +++ b/home/zshrc @@ -211,6 +211,7 @@ fi alias -g OMFG="1>/dev/null" ### @ OMFG - silence stdout. alias -g STFU="2>/dev/null" ### @ STFU - silence stderr. +alias -g SWAP="3>&1 1>&2 2>&3" ### @ SWAP - swap stdout and stderr. uses fd 3 as an intermediary. alias -g WHOA='${whoa[@]}' ### @ WHOA - expand to several C/C++ flags to ease development. alias -g WHEE='${whee[@]}' ### @ WHEE - WHOA but for C++ (specifically g++) only. alias -g WELP='${welp[@]}' ### @ WELP - expand to C++ flags to enable a C++-as-C facade.