From a77db7f4893ae7c4cffdb0b6392467bbe5773c98 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Wed, 5 Feb 2025 21:29:10 +0100 Subject: updates --- .local/share/bin/mk | 7 +++++++ 1 file changed, 7 insertions(+) (limited to '.local') diff --git a/.local/share/bin/mk b/.local/share/bin/mk index ab0f586..b7e2b41 100755 --- a/.local/share/bin/mk +++ b/.local/share/bin/mk @@ -6,6 +6,13 @@ showmode() { printf '\e[1A\e['$col'G\e[1;30m%s\e[0m\n' "$mode" } +mode_west() { + showmode 'west' + [ -z "$*" ] && set -- build + exec west "$@" +} +[ -e "west.yml" ] && mode_west "$@" + mode_cmake() { showmode 'cmake' builddir="build" -- cgit v1.2.3