02-17-2006, 11:58 AM #1init6GuestUnable to alias command for Trash
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:
alias trash mv \!\* ~/.Trash/
-bash: alias: /Users/xxx/.Trash/: not found
02-17-2006, 05:05 PM #2init6Guest
Took care of it with a bash function. You guys aren't command line people, are you? :tusks:
02-17-2006, 06:58 PM #3
- Member Since
- Dec 24, 2002
- Los Angeles, California
- 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
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!
02-18-2006, 05:50 AM #4init6Guest
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!
02-18-2006, 07:11 AM #5
- Member Since
- May 22, 2005
- Closer than you think.
- Performa 6116 2GBSCSI 8MB OS 7.5.3
alias trash mv \!\* ~/.Trash
no / at the end
02-19-2006, 04:51 AM #6init6Guest
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.
02-21-2006, 01:42 PM #7init6Guest
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
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By nickleman in forum OS X - Operating SystemReplies: 5Last Post: 11-16-2013, 06:03 PM
By blues2use in forum Switcher HangoutReplies: 19Last Post: 05-09-2013, 05:15 PM
By gmvinoth in forum OS X - Operating SystemReplies: 3Last Post: 09-10-2012, 10:45 AM
By DorianGreyfox in forum OS X - Operating SystemReplies: 4Last Post: 04-02-2012, 04:11 PM
By rabies in forum OS X - Operating SystemReplies: 3Last Post: 06-20-2011, 08:26 PM