From a5fc2e39070512a3043d33e95df046201d952041 Mon Sep 17 00:00:00 2001 From: Earnestly Date: Sat, 2 Dec 2017 11:40:28 +0000 Subject: [PATCH] sx: combine export and assignment --- sx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sx b/sx index dbd5ab5..dbd2450 100755 --- a/sx +++ b/sx @@ -44,12 +44,10 @@ case $tty in esac cfgdir=${XDG_CONFIG_HOME:-$HOME/.config}/sx -XAUTHORITY=${XAUTHORITY:-$cfgdir/xauthority} +export XAUTHORITY=${XAUTHORITY:-$cfgdir/xauthority} mkdir -p "$cfgdir" - touch "$XAUTHORITY" -export XAUTHORITY trap 'cleanup "$pid"' EXIT