aboutsummaryrefslogtreecommitdiff
path: root/.config/shell/init
diff options
context:
space:
mode:
Diffstat (limited to '.config/shell/init')
-rw-r--r--.config/shell/init6
1 files changed, 3 insertions, 3 deletions
diff --git a/.config/shell/init b/.config/shell/init
index 379d889..717e0c9 100644
--- a/.config/shell/init
+++ b/.config/shell/init
@@ -1,8 +1,8 @@
#! /usr/bin/env sh
+export SHORTSHELL=$(ps -p $$ | tail -n 1 | awk '{ print $NF }')
+
if [ -z "${SHELLSTORE}" ]
then
- SHELLSTORE=$(mktemp -d -t "shellstore_XXXXX")
-
- export SHELLSTORE
+ export SHELLSTORE=$(mktemp -d -t "shellstore_XXXXX")
fi