perl -MFile::Glob -pi -e 'BEGIN{@list = File::Glob::bsd_glob("/usr/share/vim/vim63/colors/*.vim"); $i = int(rand( scalar @list)); $x = $list[$i]; $x=~s/.vim$//;$x=~s@/usr/share/vim/vim63/colors/@@;} s/colorscheme.*/colorscheme $x/;' .vimrc
1 thought on “perl three liner – 3-liner”
Comments are closed.
http://pd2.funnyhost.com
desk3
[url=http://pd4.funnyhost.com]desk4[/url]
[link=http://pd6.funnyhost.com]desk6[/link]