Unable to alias command for Trash

I

init6

Guest
Per the tutorials on OSXFAQ, I'm trying to set up an alias command so I can move things easily to the Trash in Terminal by issuing the command 'trash.' But it isn't working.

When I enter this:
Code:
alias trash mv \!\* ~/.Trash/

I get this:
Code:
-bash: alias: /Users/xxx/.Trash/: not found

Upon doing an "ls -a .*" in my homedir, it shows .Trash and it's contents. So what gives? :eek:neye:
 
OP
I

init6

Guest
Took care of it with a bash function. You guys aren't command line people, are you? :tusks:
 

rman


Retired Staff
Joined
Dec 24, 2002
Messages
12,637
Reaction score
168
Points
63
Location
Los Angeles, California
Your Mac's Specs
14in MacBook Pro M1 Max 32GB 2TB
I am a command line, person. I just don't put anything in the trash. I just delete it. :)
 
OP
I

init6

Guest
I just figured I'd use the experience of aliasing. I have no idea how to write further bash functions, but I'm sure I'll learn. Thanks, anyway! ;)
 
Joined
May 22, 2005
Messages
2,159
Reaction score
67
Points
48
Location
Closer than you think.
Your Mac's Specs
Performa 6116 2GBSCSI 8MB OS 7.5.3
alias trash mv \!\* ~/.Trash

no / at the end
 
OP
I

init6

Guest
I did try that while I was waiting for replies, and it still didn't work. I think it might be because I'm working from tutorials that were likely written under 10.2 or 10.3 and I'm using 10.4.4.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top