News for hackers. Stuff that matters.
Re:Quick tip for developers who use OS X by Syssiphus on Monday January 13, 2014 @01:23PM (#7052333)
Pressing ESC and then _ will insert the last argument of the last line. Repeat to go up in the history.

If you go through the command history and press CTRL-o on a line it will be executed and the command on the commandline will be replaced by the next line in the history.

Re:Quick tip for developers who use OS X by philsnow on Monday January 13, 2014 @01:42PM (#7052461)
Also M-. (meta-period). Keep banging on M-. to pull in the last argument of preceding commands.

With a numeric prefix argument N, it grabs the Nth-from-the-end argument of the previous command, so M-3 M-. grabs the 3rd-from-last argument from the previous command.

Re:Quick tip for developers who use OS X by oinksoft on Monday January 13, 2014 @01:29PM (#7052372)
In Bash, you also can use the $_ variable which is the last argument of the previous command:

  $ stat /tmp/foobar
    File: `/tmp/foobar'
    Size: 0         	Blocks: 0          IO Block: 4096
    ...
  
  $ rm -v $_
  removed `/tmp/foobar'
Re:Quick tip for developers who use OS X by hk__2 on Monday January 13, 2014 @02:57PM (#7052902)
You can also use `!$`.
Re:Quick tip for developers who use OS X by yawboakye on Monday January 13, 2014 @07:04PM (#7054495)
!$ runs the last command. it's bad if the last command is of the form command arg... because it'd run command without every other argument passed in the command line