My WordPress Toolbox
Thought I’d share this with you. Here are the commands I use to “do work” on WordPress.
Connect to a remote machine (usually I do development on my laptop, locally, but sometimes I’ll work from another computer):
$ ssh -l remote_username example.comMake a directory:
$ mkdir /path/to/wordpress/Browse to the WordPress directory:
$ cd /path/to/wordpress/Use SVN to download the latest WP code to the current directory (which from now on, assume is /path/to/wordpress/):
$ svn co http://svn.automattic.com/wordpress/trunk/ .Update existing SVN checkout to latest code:
$ svn upSearch WordPress for a string (’function the_content’ in this case):
$ grep -iR 'function the_content' *Edit a file using nano:
$ nano filename.phpMake a patch, for filename.php:
$ svn diff filename.php > filename.diffMake a patch for all files modified in the checkout:
$ svn diff > big_patch.diffApply a patch from someone else:
$ patch -p0 < patch.diff
My main text editor is TextMate for OS X, but I’ll use nano if logged in to a remote system. Note that all these commands work for OS X and Linux (you’ll need svn installed… check out Fink for OS X which gives you apt-get and a bunch of nice Linux-y goodness).
Update: Peter Westwood has a tutorial for Windows users, which I recommend (I used to do development on Windows, and I used the tools that he recommends!)
[...] In preparation for the first WordPress Bug Hunt this weekend Mark Jaquith has written some excellent instructions on how he “does work” on WordPress on Linux / Mac OS X. [...]
I don’t work on WordPress but I do develop other projects using SVN and I use Eclipse for most of the work. With a PHPeclipse and Subclipse you can do the same thing in one package. Thought your way seems to work for you.
[...] Mark Jaquith’s WordPress Blog Just another WordPress.com weblog « My WordPress Toolbox [...]
[...] Mac OSX and GNU/Linux Subversion cheat sheet [...]
Interesting stuff, but I am new to WP and have some basic questions: Can you help?
1. I am using wordpress.com and want to change the title on the blog. How?
2. Can I use a theme that is not there in wordpress.com?
Would appreciate any help on these.
Thanks,
Scribbler.
scribbler,
options » general, to change the name of the blog
You cannot currently use arbitrary code on wordpress.com
ssh -l username example.com -p port-number
in case someone wants to use a different port number!
[...] [...]
[...] If you need some help in understanding the process of using subversion to access the WordPress code and applying or making patches then I suggest you read through one of the few articles about working on WordPress - Specifically there are Marks’s instructions for working on MAC OS X or Linux and my instructions for working with Tortoise SVN on Windows. [...]
[...] inspired by posts awhile ago by Westi’s Windows WordPress toolbox and Mark’s Mac/Unix based WordPress toolbox, I give you my WordPress-and-sometimes-not-Mac-and-Linux [...]
Hi Jim. Photos i received. Thanks
ssh username@example.comis smoother than the
-lparameter.A very helpful, yet widely unknown feature is bash’s (and other shell’s) tab completition: For example, if you want to go to
/path/to/wordpress/, you type/pand press tab. You’ll either havepathautocompleted, or you are shown all files/directories starting with p (if so, type the next letter, and so on). This is one of the features which saves a big bunch of time, when you’re working in the shell.Hi! I find for best deal
vigra order online
[...] My WordPress Toolbox « Mark on WordPress - How to patch wp in linux [...]
[...] experimenting, but eventually got it working. Decided to share my mods back with the community by contributing a patch to WP [...]
what i m trying to do is when i login to wordpress on the site i see this topic called toolbox i would like users when they login go to that toolbox upload . can it be done or should i just make a php script? email me if you get this thank you
[...] inspired by posts awhile ago by Westi’s Windows WordPress toolbox and Mark’s Mac/Unix based WordPress toolbox, I give you my WordPress-and-sometimes-not-Mac-and-Linux [...]
[...] inspired by posts awhile ago by Westi’s Windows WordPress toolbox and Mark’s Mac/Unix based WordPress toolbox, I give you my WordPress-and-sometimes-not-Mac-and-Linux [...]
l don’t work on WordPress but I do develop other projects using SVN and I use Eclipse for most of the work. With a PHPeclipse and Subclipse you can do the same thing in one package. Thought your way seems to work for you.
Hi Jim. Photos i received. Thanks
A very helpful, yet widely unknown feature is bash’s (and other shell’s) tab completition: For example, if you want to go to /path/to/wordpress/, you type /p and press tab. You’ll either have path autocompleted, or you are shown all files/directories starting with p (if so, type the next letter, and so on). This is one of the features which saves a big bunch of time, when you’re working in the shell. http://www.yemek-tariflerimiz.tr.gg bekleriz
super idea http://www.voipvoip.tr.gg and http://www.voipx.tr.gg come me http://www.tvdizileri.tr.gg l am waiting
Thanks Mark,
Very useful post.
Thanks for your post.
Mac OSX and GNU/Linux Subversion cheat sheet
hi http://www.demard.tr.gg and http://www.msnhocasiyim.tr.gg http://www.superteklifkazan.tr.gg super sites
super site, thanks
Hi! I find for best deal
vigra order online
thanks. super blog
Thanks for the tutorial, it worked a treat.