From 0c63e94588e646cbf894c67e3f6ed903af38e574 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakob=20Sch=C3=B6ttl?= Date: Sat, 23 Jan 2016 22:35:40 -0800 Subject: [PATCH] Minor refactoring Should have exactly the same effect now. In case of no options: one white space after a shell command don't change anything. --- tdrop | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/tdrop b/tdrop index 0c5d978..582f590 100755 --- a/tdrop +++ b/tdrop @@ -438,12 +438,7 @@ maybe_cancel_auto_show() { # term_create() { - local term_command - if [[ -n $program_flags ]]; then - term_command="$term $program_flags" - else - term_command=$term - fi + local term_command="$term $program_flags" if [[ $term == terminix ]]; then sleep_term_time=0.3 fi @@ -471,12 +466,7 @@ term_create() { } win_create() { - local win_command - if [[ -n $program_flags ]]; then - win_command="$term $program_flags" - else - win_command=$term - fi + local win_command="$term $program_flags" $win_command & # need to wait for window to be created sleep $sleep_win_time