Results 1 to 7 of 7
  1. #1
    Unable 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/
    I get this:
    -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:

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

  3. #3

    rman's Avatar
    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!

  4. #4
    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!

  5. #5

    MacsWork's Avatar
    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

  6. #6
    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.

  7. #7
    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 -

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Unable to empty trash
    By blues2use in forum Switcher Hangout
    Replies: 23
    Last Post: 01-12-2017, 12:08 AM
  2. Unable to empty trash
    By nickleman in forum macOS - Operating System
    Replies: 5
    Last Post: 11-16-2013, 06:03 PM
  3. Unable to find the packagemaker command line tool in Mac 10.8
    By gmvinoth in forum macOS - Operating System
    Replies: 3
    Last Post: 09-10-2012, 10:45 AM
  4. Erased all my computer using sudo command to empty bothering trash
    By DorianGreyfox in forum macOS - Operating System
    Replies: 4
    Last Post: 04-02-2012, 04:11 PM
  5. create alias to terminal command?
    By rabies in forum macOS - Operating System
    Replies: 3
    Last Post: 06-20-2011, 08:26 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts