Tuesday, May 22, 2007

global aliases in zsh




Mmmm, global aliases in zsh rock.

I have one setup now to scp an image to my images directory on my webserver:


alias -g S=w:/usr/sness/www.sness.org/images


So, now I just have to type:


scp 29962050.jpg S


And the image is uploaded to my webserver. I still want to make this cooler by just typing:


S current-name.jpg new-name.jpg


But I haven't figured out how to do that quite yet.