Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linux:tkcvs_tips [2008/01/31 21:07]
Joel Dare
linux:tkcvs_tips [2020/06/01 22:53] (current)
Line 1: Line 1:
 +====== tkCVS Tips ======
  
 +===== Configuring the Editor =====
 +
 +You can configure tkCVS to launch any editor when you open a file.
 +
 +  - Edit the .tkcvs file in your home directory.
 +  - Add the following lines
 +
 +  set cvscfg(editor) zendstudio
 +  set cvscfg(editorargs)
 +
 +
 +
 +
 +===== Zend Studio Shell =====
 +
 +In order for the editor options to work with Zend Studio, I had to modify my /​usr/​bin/​zendstudio script to open files using the full path.  Here's that script.
 +
 +<​code>​
 +#!/bin/bash
 +
 +# Setup the path to add, or not
 +if echo "​$1"​ | grep ^\/ >/​dev/​null;​ then
 +  x="​$1"​
 +else
 +  x=`pwd`/$1
 +fi
 +
 +
 +/​usr/​local/​Zend/​ZendStudio-5.5.0/​bin/​ZDE $x
 +
 +wmctrl -a Zend
 +</​code>​
 +
 +I need to change this script so that it doesn'​t use pwd if $1 starts with / or ../ or similar.
comments powered by Disqus