next up previous contents
Next: 9.3.4 More startup options. Up: 9.3 The Pico Editor Previous: 9.3.2 What Pico is   Contents

9.3.3 Starting Pico.

Pico is started with the command pico or pico <file_name>, where file_name is the file to edit. To edit your .bashrc file you would type pico .bashrc at the command prompt. This poses a problem though, when you want to edit a file that has a line length greater 80 characters. Since Pico was designed to be used with Pine, it defaults to use word wrap at 80 characters. This doesn't work to well with some Linux configuration files. To disable word wrapping when editing a file, use the -w option. To edit your /etc/hosts file with word wrap disabled you would type pico -w /etc/hosts. As default, I always start pico with the -w option. You can alias the command to always start pico with the -w option. At a command prompt. alias mypico='pico -w $1'. Now when you type mypico <file_name> pico will now will have word wrap disabled. The alias command is covered in more detail in another section of this document.


next up previous contents
Next: 9.3.4 More startup options. Up: 9.3 The Pico Editor Previous: 9.3.2 What Pico is   Contents