ocs 0.1.5

A session picker for OpenCode
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[derive(Clone, clap::ValueEnum)]
pub(crate) enum Shell {
  Bash,
  Zsh,
}

impl Shell {
  pub(crate) fn init(self) -> &'static str {
    match self {
      Self::Bash => include_str!("shell/bash/init.bash"),
      Self::Zsh => include_str!("shell/zsh/init.zsh"),
    }
  }
}