From: Amin Bandali Date: Wed, 4 Dec 2019 03:11:52 +0000 (-0500) Subject: bash: add t function X-Git-Url: https://git.shemshak.org/gitweb.cgi/~bandali/configs/commitdiff_plain/9c9bf1a21872cc492520b2b4b6bac2a84be4a5f5?ds=inline bash: add t function --- diff --git a/.bashrc b/.bashrc index 6b4d476..b38f7ea 100644 --- a/.bashrc +++ b/.bashrc @@ -87,6 +87,10 @@ aur() { cd ${1} } +function t { + cd $(mktemp -d /tmp/$1.XXXX) +} + # separate alias definitions file, if exists if [ -f ~/.bash_aliases ]; then . ~/.bash_aliases