Class: Noir::Command::Init::Zsh
- Inherits:
-
Base::TerminalCommand
- Object
- Base::Command
- Base::TerminalCommand
- Noir::Command::Init::Zsh
- Defined in:
- lib/noir/command/init/zsh.rb
Constant Summary collapse
- InitScript =
enable completion for zsh wrote this code in .zshrc if which noir >& /dev/null; then eval “$(noir init zsh)”; fi
%q( if [[ ! -o interactive ]]; then return fi compctl -K _noir noir _noir() { local words completions read -cA words completions="$(noir completion ${words[2,-2]})" reply=("${(ps:\n:)completions}") } )
Class Method Summary collapse
Methods inherited from Base::TerminalCommand
Methods inherited from Base::Command
check_command_not_found, description, sub_commands
Class Method Details
.execute(*args) ⇒ Object
28 29 30 |
# File 'lib/noir/command/init/zsh.rb', line 28 def execute *args puts InitScript end |