summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsinanmohd <sinan@firemail.cc>2023-07-11 14:21:48 +0530
committersinanmohd <sinan@firemail.cc>2023-07-11 15:43:56 +0530
commit58058d172a9c7ba1d248bb2d3df73acc1b046ec4 (patch)
tree5715de393691cdf82df6a4a4fec349e19ffe3e33
parentb16fdf596ed5c6f3869d30576b9afea226089256 (diff)
ttyasrt: exec into programs instaed of forking
-rwxr-xr-x.local/bin/ttyasrt4
1 files changed, 2 insertions, 2 deletions
diff --git a/.local/bin/ttyasrt b/.local/bin/ttyasrt
index 21b5d42..3b73174 100755
--- a/.local/bin/ttyasrt
+++ b/.local/bin/ttyasrt
@@ -12,7 +12,7 @@ die()
die "\$TERMIANL must be set"
if tty --silent; then
- "$@"
+ exec "$@"
else
- "$TERMINAL" -- "$@"
+ exec "$TERMINAL" -- "$@"
fi