sx: combine export and assignment
This commit is contained in:
parent
e08bc130c0
commit
a5fc2e3907
4
sx
4
sx
|
@ -44,12 +44,10 @@ case $tty in
|
||||||
esac
|
esac
|
||||||
|
|
||||||
cfgdir=${XDG_CONFIG_HOME:-$HOME/.config}/sx
|
cfgdir=${XDG_CONFIG_HOME:-$HOME/.config}/sx
|
||||||
XAUTHORITY=${XAUTHORITY:-$cfgdir/xauthority}
|
export XAUTHORITY=${XAUTHORITY:-$cfgdir/xauthority}
|
||||||
|
|
||||||
mkdir -p "$cfgdir"
|
mkdir -p "$cfgdir"
|
||||||
|
|
||||||
touch "$XAUTHORITY"
|
touch "$XAUTHORITY"
|
||||||
export XAUTHORITY
|
|
||||||
|
|
||||||
trap 'cleanup "$pid"' EXIT
|
trap 'cleanup "$pid"' EXIT
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue