Add CVS shortcuts to Nautilus on Linux

Source: Internet
Author: User

In Linux, if you want to use a tortoisecvs client similar to Windows, it seems that there is only a subversion tool (rabbitvcs), and there is no CVS tool. In fact, we can add scripts to the Linux Nautilus to achieve a similar (relatively simple) effect.

Enter the Nautilus Script directory. If there is no directory, create one. Generally, it is under the user directory by default ~ /. Gnome2/Nautilus-Scripts

Add the following files:

"CVS up"

#! /Bin/sh <br/> If ["$ {nautilus_script_selected_file_paths }"! = ""] <Br/> then <br/> file = 'echo $ {nautilus_script_selected_file_paths} | awk-F/'{print $ NF} ''<br/> else <br/> file = <br/> fi <br/> cmd = "Echo 'cvs up' $ {file }; CVS up $ {file}; echo ''; echo 'done '; sleep 100000000;" <br/> xterm-e "$ {cmd}" <br/> 

"CVS log"

#! /Bin/sh <br/> If ["$ {nautilus_script_selected_file_paths }"! = ""] <Br/> then <br/> file = 'echo $ {nautilus_script_selected_file_paths} | awk-F/'{print $ NF} ''<br/> else <br/> file = <br/> fi <br/> cmd = "Echo 'cvs log' $ {file }; CVS log $ {file}; echo ''; echo 'done'; sleep 100000000;" <br/> xterm-e "$ {cmd}" <br/> 

"CVS diff"

#! /Bin/sh <br/> If ["$ {nautilus_script_selected_file_paths }"! = ""] <Br/> then <br/> file = 'echo $ {nautilus_script_selected_file_paths} | awk-F/'{print $ NF} ''<br/> else <br/> file = <br/> fi <br/> cmd = "Echo 'cvs diff-u4' $ {file }; CVS diff-U4 $ {file}; echo ''; echo 'done'; sleep 100000000;" <br/> xterm-e "$ {cmd}" <br/>

Open Nautilus, a CVS directory, select a file or directory, right-click and choose scripts>... the scripts defined above will appear, and then you can select one to execute 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.