Posted By

chrisaiv on 05/13/08


osx alias terminal

Versions (?)

Who likes this?

2 people have marked this snippet as a favorite


Creating a Simple Alias in Terminal

 / Published in: Bash

I use terminal for SFTP because I'm cheap and I don't want to purchase Transmit. SFTP works just fine but the problem is that I get tired of having to type [bash]$ sftp [email protected]:/directory/subdirectory/ so instead I've made an alias. First things first, in terminal using Textmate, type [bash]$ mate ~/.bashalias. Next paste the code below. After you save the file, type [bash]$ ~/.bashprofile and past the second line of code. After you restart your terminal, you should only have to type the alias nickname and whala!

  1. #Place this in ~/.bash_alias
  2. alias nickname='sftp [email protected]:/public_html/directory/subdirectory/'
  4. +++++++++++++++++++++++++++++++++++++++++++++++
  6. #Place this in ~/.bash_profile
  7. source $HOME/.bash_alias

Report this snippet  


RSS Icon Subscribe to comments
Posted By: Leech on October 6, 2008


Use Cyberduck, it's free and very good.

Posted By: chrisaiv on October 13, 2008

Lately I've been using FileZilla, I prefer it over Cyberduck.

Posted By: Leech on November 4, 2008

Yes, 2 sides is much better. But I bought Transmit, it's awesome.

You need to login to post a comment.