0
votes
2answers
62 views

Unable to create a permanent alias in Mac OS

In Linux I can well to add alias to bashrc and it will become a permanent alias. In Mac OS I tried to do the same thing: vim ~/.bashrc export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH f or ...
0
votes
2answers
168 views

Shell function in .bashrc is not recognized

I know this must be something silly but somehow I am stuck trying to create a shortcut (alias) for a shell function. Here is my exact .bash_profile: [[ -s "$HOME/.rvm/scripts/rvm" ]] && source ...
1
vote
1answer
48 views

Where is virtualenv's deactivate defined?

Virtualenv defines an alias for the command deactivate as seen in yourvirtualenv/bin/activate.csh. What I'm curious about is where deactivate resides, because when I issue an alias command deactivate ...
0
votes
1answer
77 views

How to create terminal shortcut to desktop?

I did find this answer here. However could not get it to work with my current setup :( For example, when I start up iTerm currently it's been set to a specific direction (another developer did that) ...
0
votes
1answer
56 views

Save Linux aliases for later usage

After repeating an Arch Linux installation for several times I started to wonder whether I could make things easier for me in the future by taking some general commands that I am bound to use again ...
6
votes
1answer
229 views

I deleted my aliases file, but my aliases are still in my bash session - how can I recover them?

I had a ton of aliases defined and I use them all the time. I have a terminal session open now in which all the aliases are valid and working. However, the .bash_aliases file in which they were ...
0
votes
1answer
26 views

how to edit aliases

I just started looking into aliases and I already created a couple aliases before reading how to write alias commands into files so you can easily edit them. If you just directly run the command ...
0
votes
1answer
400 views

create alias to ssh to a server and then connect to mysql

I currently have an alias to connect to a remote server: alias server='ssh user@ec2-00-00-00-000.compute-1.amazonaws.com' I would like to have an alias to connect to this server, and then ...
0
votes
3answers
494 views

How to make an alias for a folder on a mounted drive?

I use parallels to run a windows machine and would love to make an alias in my .profile to make a shortcut to my project folder, but the following alias below dosn't seem to work. alias ...
1
vote
1answer
4k views

How to Create a Permanent Alias in Mac OS X Lion Terminal?

I've googled the heck out of this. The typical methods of adding the alias to ~/.bashrc or ~/.bash_profile just aren't working for me. Help please? Thanks! Here's my current ~/.bash_profile if [ ...
3
votes
4answers
14k views

How do I create a symbolic link in Mac OSX?

I have a .sh file that I need to create a symbolic link. I would like to be able to access the file using the Terminal. The command I use is: ln -s /path/roo.sh /usr/bin/roo But when I type roo, ...
3
votes
2answers
1k views

How to undo alias, PATH=$PATH:./Test - (Unix)

1.) In a terminal when we make an alias for any command line,the life of that alias is as long as the terminal is open. alias new_command=old_command example: alias dog=cat But can we explicitly ...
0
votes
1answer
398 views

On Mac, why doesn't alias la 'ls -la' work?

When I run alias la 'ls -la' I get the error: ls: alias: no such file or directory How do I alias la to ls -la?
1
vote
2answers
454 views

Why does an alias work in the Terminal, but not when called from a script?

I've added the following to my ~/.bash_profile # opens "flashlog.txt" in Console alias trace='open -a /Applications/Utilities/Console.app/ ~/Library/Preferences/Macromedia/Flash\ ...