New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

OS 10.4 - Unable to alias command for Trash


Post Reply New Thread Subscribe

 
Thread Tools
init6
Guest
 
Posts: n/a

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? neye:
QUOTE Thanks
init6
Guest
 
Posts: n/a

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

 
rman's Avatar
 
Member Since: Dec 24, 2002
Location: Los Angeles, California
Posts: 12,591
rman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud of
Mac Specs: 2 x 3.0GHz Quad-Core, 6GB OS X 10.6.8 | 15in MacBook Pro 2.2GHz OS X 10.6.8 | 64GB iPad 2 WiFi

rman is offline
I am a command line, person. I just don't put anything in the trash. I just delete it.

Life isn't about waiting for the storm to pass, It's about learning to dance in the rain!
QUOTE Thanks
init6
Guest
 
Posts: n/a

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!
QUOTE Thanks
MacsWork

 
MacsWork's Avatar
 
Member Since: May 22, 2005
Location: Closer than you think.
Posts: 2,144
MacsWork is just really niceMacsWork is just really niceMacsWork is just really niceMacsWork is just really niceMacsWork is just really nice
Mac Specs: Performa 6116 2GBSCSI 8MB OS 7.5.3

MacsWork is offline
alias trash mv \!\* ~/.Trash

no / at the end
QUOTE Thanks
init6
Guest
 
Posts: n/a

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.
QUOTE Thanks
init6
Guest
 
Posts: n/a

Well, I finally figured out why it didn't work originally. Pretty obvious, but I still missed it. I was typing commands for 'tcsh' when my shell is 'bash.' Never even dawned on me.

Fortunately, someone has updated the OSXFAQ UNIX tutorials for Bash here - http://osxfaq.1dot1.com/Tutorials/Le...enter/index.ws
QUOTE Thanks

Post Reply New Thread Subscribe


« OS X Tiger on a pc | Retrieving deleted files »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
color on the terminal zero17 OS X - Development and Darwin 25 05-02-2011 03:20 PM
Whats an Alias? hojkoff_101 Internet, Networking, and Wireless 1 01-19-2006 09:26 PM
Unable to move installers from desktop to folder darkdecoder Schweb's Lounge 5 01-06-2006 01:49 AM
Airport Unable to connect to wireless network with no security MikeyT Internet, Networking, and Wireless 0 08-18-2004 12:49 PM
Gray Menu Unable to Burn for Backup of files. Chester OS X - Operating System 6 12-28-2003 10:33 PM

All times are GMT -4. The time now is 12:52 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?