> Hi, everyone.
>
> I add one rm function in .bashrc, so if I use rm to delete the file,
> the file will be moved to ~/.Trash directory.
> But When I use "!rm /tmp/1" command, I can't find the file in ~/.Trash
> dir, it seems that the real rm command is called.
>
> How can I use the function defined by myself ?
>
> Best Regards,
> robert
>
> --
> You received this message from the "vim_use" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
>
Hi Robert,
It would appear that your .bashrc is not being used when executing
from within vim, or the environment is 'cleaned' when vim starts.
either way the solution would be to make the function into an
executable script, placed in your ~/bin directory and ensure that your
~/bin directory is first in the $PATH environment variable.
cheers
Chris
--
Dingo: You must spank her well, and after you are done with her, you
may deal with her as you like... and then... spank me.
All: And me. And me too. And me.
Dingo: Yes. Yes, you must give us all a good spanking.
Dingo: And after the spanking, the oral sex.
Galahad: Well, I could stay a bit longer...
Monty Python And The Holy Grail.
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment