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.