Use vimdebug in build-debug if nvim is available

This commit is contained in:
Kenneth Benzie 2024-04-02 16:09:12 +01:00
parent 18bcb6ccde
commit edf37ebf07

View File

@ -17,11 +17,13 @@ if [ `uname` = Linux ]; then
done
nvim "+packadd termdebug" "+TermdebugCommand $args"
}
if which gdb &> /dev/null; then
if command -v nvim &> /dev/null; then
alias debug=vimdebug
elif command -v gdb &> /dev/null; then
alias debug='gdb --args'
fi
elif [ `uname` = Darwin ]; then
which lldb &> /dev/null && \
command -v lldb &> /dev/null && \
alias debug='lldb --'
fi