How do i set the editor for chef dk?



  • When you run commands like sudo knife node edit parallels-vm it expects to open up a file for editing in your preferred editor.

    The Chef DK workstation will have a knife.rb file, the following entry needs to be added:

    knife[:editor]="vi"
    

    The editor can be any editor you prefer to use, notepad for windows, emacs, nano, etc


Log in to reply
 

© Lightnetics 2024