From bc6a6eaf14c39f046e879169be715ee0246e2df1 Mon Sep 17 00:00:00 2001 From: noctuid Date: Mon, 19 Jun 2017 20:31:29 +0900 Subject: [PATCH] Add -s and -a support for alacritty Closes #28 --- tdrop | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tdrop b/tdrop index 50c59d5..eab98f4 100755 --- a/tdrop +++ b/tdrop @@ -368,6 +368,8 @@ set_class() { class=Gnome-terminal elif [[ $program == urxvtc ]]; then class=urxvt + elif [[ $program == alacritty ]]; then + class=Alacritty elif [[ $program == current ]]; then class=$(cat "$MUTDROP_PATH"/current"$num"_class 2> /dev/null) else @@ -566,7 +568,7 @@ program_start() { tmux_command="'tmux attach-session -dt $session_name || \ tmuxinator start $session_name || \ tmux new-session -s $session_name'" - if [[ $program =~ ^urxvt ]]; then + if [[ $program =~ ^(urxvt|alacritty$) ]]; then program_command="$program_command -e bash -c $tmux_command" elif [[ $program == terminix ]]; then program_command="$program_command -x \"bash -c $tmux_command\""