summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmin Bandali <bandali@gnu.org>2019-12-03 22:11:52 -0500
committerAmin Bandali <bandali@gnu.org>2019-12-03 22:11:52 -0500
commit9c9bf1a21872cc492520b2b4b6bac2a84be4a5f5 (patch)
tree4f5cbcf22bb2d141be38894a481fa7b6b102fec9
parent1401d7c4401a40d5bc111fafb5eebc91bebf0a9d (diff)
downloadconfigs-9c9bf1a21872cc492520b2b4b6bac2a84be4a5f5.tar.gz
configs-9c9bf1a21872cc492520b2b4b6bac2a84be4a5f5.tar.xz
configs-9c9bf1a21872cc492520b2b4b6bac2a84be4a5f5.zip
bash: add t function
Diffstat (limited to '')
-rw-r--r--.bashrc4
1 files changed, 4 insertions, 0 deletions
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