From 6fc576670c8c5a5b35f58b818b2c73798abf9b66 Mon Sep 17 00:00:00 2001
From: xyz <gky44px1999@gmail.com>
Date: Mon, 3 Oct 2022 17:55:10 -0700
Subject: use exec

---
 home/xyz/.local/bin/alacritty | 2 +-
 home/xyz/.local/bin/matlab    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/home/xyz/.local/bin/alacritty b/home/xyz/.local/bin/alacritty
index 36b0aed7..8ccc3a4b 100755
--- a/home/xyz/.local/bin/alacritty
+++ b/home/xyz/.local/bin/alacritty
@@ -3,4 +3,4 @@
 # https://github.com/MithicSpirit/dotfiles/blob/bb5cce2268f473e5b17759448ee7715b4163fe66/.local/bin/alacritty
 # use `--working-directory "$PWD"` so when do `o .` will launch alacritty in current dir
 # without `msg create-window` no need --working-directory for `o .` to work
-/usr/bin/alacritty msg create-window --working-directory "$PWD" "$@" || /usr/bin/alacritty "$@"
+/usr/bin/alacritty msg create-window --working-directory "$PWD" "$@" || exec /usr/bin/alacritty "$@"
diff --git a/home/xyz/.local/bin/matlab b/home/xyz/.local/bin/matlab
index 6f39d4ed..5d1bf053 100755
--- a/home/xyz/.local/bin/matlab
+++ b/home/xyz/.local/bin/matlab
@@ -9,7 +9,7 @@
 # https://bbs.archlinux.org/viewtopic.php?id=277970
 
 cmd () {
-	_JAVA_AWT_WM_NONREPARENTING=1 LD_PRELOAD=/lib64/libfreetype.so "$bin_dir/matlab" -sd "$startup_dir" -desktop -nosplash "$@"
+	_JAVA_AWT_WM_NONREPARENTING=1 LD_PRELOAD=/lib64/libfreetype.so exec "$bin_dir/matlab" -sd "$startup_dir" -desktop -nosplash "$@"
 }
 
 startup_dir=/tmp/matlab
-- 
cgit v1.2.3-70-g09d2