forked from cursorless-dev/cursorless
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add tasks for debugging neovim on linux
- Loading branch information
1 parent
0af05b2
commit cdaf58e
Showing
4 changed files
with
40 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env bash | ||
# shellcheck disable=SC2068 | ||
set -euo pipefail | ||
|
||
if command -v gnome-terminal &>/dev/null; then | ||
# FIXME: Possibly have to use ;exec bash to not auto-close the terminal | ||
gnome-terminal -- $@ | ||
elif command -v gnome-console &>/dev/null; then | ||
gnome-console -- $@ | ||
elif command -v konsole &>/dev/null; then | ||
konsole --hold -e $@ | ||
elif command -v xfce4-terminal &>/dev/null; then | ||
xfce4-terminal --hold -e $@ | ||
elif command -v kitty &>/dev/null; then | ||
kitty -1 --hold $@ | ||
elif command -v alacritty &>/dev/null; then | ||
alacritty --hold -e $@ | ||
elif command -v wezterm &>/dev/null; then | ||
wezterm --config "exit_behavior='Hold'" start --always-new-process $@ | ||
else | ||
echo "No supported terminal emulator found. File an issue to get it added." | ||
exit 1 | ||
fi |