diff --git a/sx b/sx index 21a675f..e2ac46d 100755 --- a/sx +++ b/sx @@ -19,7 +19,7 @@ cleanup() { } stty=$(stty -g) -tty=$(ps -o tty= $$) +tty=$(ps -o tty= -p $$) tty=${tty#tty} cfgdir=${XDG_CONFIG_HOME:-$HOME/.config}/sx