Module: Halfshell
- Defined in:
- lib/halfshell.rb,
lib/halfshell/agent.rb,
lib/halfshell/version.rb,
lib/halfshell/terminal.rb
Defined Under Namespace
Classes: Agent, Error, Terminal
Constant Summary
collapse
- VERSION =
"0.1.6"
Class Method Summary
collapse
Class Method Details
.<<(command) ⇒ Object
8
9
10
11
|
# File 'lib/halfshell.rb', line 8
def Halfshell.<<(command)
return ($hs = new) if :global == command
new << command
end
|
.new ⇒ Object
13
14
15
|
# File 'lib/halfshell.rb', line 13
def Halfshell.new
Agent.new(terminal: Terminal.default)
end
|
.zsh ⇒ Object
17
18
19
|
# File 'lib/halfshell.rb', line 17
def Halfshell.zsh
Agent.new(terminal: Terminal.zsh)
end
|