aboutsummaryrefslogtreecommitdiff
path: root/.local/share/bin/mk
diff options
context:
space:
mode:
Diffstat (limited to '.local/share/bin/mk')
-rwxr-xr-x.local/share/bin/mk7
1 files changed, 7 insertions, 0 deletions
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"