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 chrisaiv@blah.com:/directory/subdirectory/ so instead I've made an alias. First things first, in terminal using Textmate, type [bash]$ mate ~/.bash_alias. Next paste the code below. After you save the file, type [bash]$ ~/.bash_profile 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 chrisaiv@domain.com:/public_html/directory/subdirectory/' +++++++++++++++++++++++++++++++++++++++++++++++ #Place this in ~/.bash_profile source $HOME/.bash_alias
You need to login to post a comment.
