Skip to content

Commit c0966dc

Browse files
committed
feat ✨ (core): implement configuration orbstack (#44)
Signed-off-by: Luis Mayta <[email protected]>
1 parent 9dbc09f commit c0966dc

File tree

4 files changed

+29
-0
lines changed

4 files changed

+29
-0
lines changed

config/main.zsh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ function docker::config::main::factory {
3131
docker*)
3232
# shellcheck source=/dev/null
3333
source "${ZSH_DOCKER_PATH}"/config/docker.zsh
34+
;;
35+
orbstack*)
36+
# shellcheck source=/dev/null
37+
source "${ZSH_DOCKER_PATH}"/config/orbstack.zsh
3438
;;
3539
esac
3640
}

config/orbstack.zsh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env ksh
2+
# -*- coding: utf-8 -*-
3+
4+
function container::core {
5+
alias docker=docker
6+
}

internal/main.zsh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ function docker::internal::main::factory {
3131
docker*)
3232
# shellcheck source=/dev/null
3333
source "${ZSH_DOCKER_PATH}"/internal/docker.zsh
34+
;;
35+
orbstack*)
36+
# shellcheck source=/dev/null
37+
source "${ZSH_DOCKER_PATH}"/internal/orbstack.zsh
3438
;;
3539
esac
3640
# shellcheck source=/dev/null

internal/orbstack.zsh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env ksh
2+
# -*- coding: utf-8 -*-
3+
4+
function container::internal::container::install {
5+
if core::exists docker; then
6+
return
7+
fi
8+
message_info "Installing ${ZSH_DOCKER_PACKAGE_NAME}"
9+
core::install orbstack
10+
message_success "Installed ${ZSH_DOCKER_PACKAGE_NAME}"
11+
}
12+
13+
function container::internal::container::load {
14+
return
15+
}

0 commit comments

Comments
 (0)