Add CVS shortcuts to nautilus on Linux __linux

Source: Internet
Author: User
Tags diff

If you want to use a TORTOISECVS client like Windows on Linux, it seems like only a Subversion tool (Rabbitvcs) and no CVS tool. In fact, we can achieve a similar (simpler) effect by adding scripts to the Linux nautilus.

Enter the Nautilus script directory, and if not, create one, usually default is the user directory under the ~/.gnome2/nautilus-scripts

Add several files as follows:

"CVs Up"

#!/bin/sh if ["${nautilus_script_selected_file_paths}"!= ""] then file= ' Echo ${nautilus_script_selected_file_paths} | awk-f/' {print $NF} ' else file= fi cmd= ' echo ' cvs up ' ${file}; CVS up ${file}; Echo '; Echo ' done '; sleep 100000000; "Xterm-e" ${cmd} "

"CVS Log"

#!/bin/sh if ["${nautilus_script_selected_file_paths}"!= ""] then file= ' Echo ${nautilus_script_selected_file_paths} | awk-f/' {print $NF} ' else file= fi cmd= ' echo ' cvs log ' ${file}; CVS Log ${file}; Echo '; Echo ' done '; sleep 100000000; "Xterm-e" ${cmd} "

"CVS diff"

#!/bin/sh if ["${nautilus_script_selected_file_paths}"!= ""] then file= ' Echo ${nautilus_script_selected_file_paths} | awk-f/' {print $NF} ' else file= fi cmd= ' echo ' cvs Diff-u4 ' ${file}; CVS Diff-u4 ${file}; Echo '; Echo ' done '; sleep 100000000; "Xterm-e" ${cmd} "

Then open nautilus, a CVS directory, select a file or directory, right button->scripts-> The scripts defined above will appear, and then you can select one to perform the CVS command.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.