Subscribe to RSS Feed

Posts Tagged ‘ Perl ’

PHP Command Line Interface (CLI) has not built-in coloring for script output, like example Perl language has (perldoc.perl.org/Term/ANSIColor.html). So I decided to make own class for coloring PHP CLI output. This class works only Bash shells. This class is easy to use. Just create new instance of class and call getColoredString function with string and foreground color and/or background color.

PHP Class for Coloring PHP Command Line (CLI) Scripts Output

» Continue Reading "PHP Class for Coloring PHP Command Line (CLI) Scripts Output – PHP Output Colorizing Using Bash Shell Colors"

1 Comment

terminal-logo-smallToday I started thinking that how cool is do some Google searches straight from command line. First I try to find some ready tricks from the Internet, but I couldn’t find quickly anything good. So I decide do a simple Bash function that can take Google search as parameter and open Firefox Browser (tab) with Google search. Sounds easy… :)

» Continue Reading "Google search from Linux and UNIX command line"

Please leave a comment
Nano Editor

Nano Editor

Nano is easy to use and lightweight command line text editor for Linux and UNIX systems. Nano text editor can use either the default settings or improve settings with customized nanorc-file. Here are some tips that can improve the usability of Nano. Changes can be made nanorc file, either locally or to all users or options can be used as command line options.

First is good to check Nano compiled options, with command:

nano -V

Nano should be compiled with --enable-nanorc option.

Example configuration file can be copied from /usr/share/doc/nano-[version]/nanorc.sample. If you want to add the settings to all users, then copy nanorc to the /etc/nanorc and if you want to add the settings locally to one user then copy nanorc to the $HOME/.nanorc.

And then the real tuning.

» Continue Reading "Tuning Nano text editor with nanorc"

1 Comment

Recent Comments