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!
- #Place this in ~/.bash_alias
- alias nickname='sftp [email protected]:/public_html/directory/subdirectory/'
- #Place this in ~/.bash_profile
- source $HOME/.bash_alias
CommentsSubscribe to comments
You need to login to post a comment.