Skip to content

Instantly share code, notes, and snippets.

@Layzie
Forked from yamashiro/gist:4646800
Created January 30, 2013 13:45

Revisions

  1. Layzie revised this gist Jan 30, 2013. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions gistfile3.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    history -1 | awk '$1=""; {print}' | pbcopy
  2. @yamashiro yamashiro renamed this gist Jan 27, 2013. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. @yamashiro yamashiro revised this gist Jan 27, 2013. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions gistfile2.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    fc -ln -1 | tr -d '\n' | pbcopy
  4. @yamashiro yamashiro created this gist Jan 27, 2013.
    1 change: 1 addition & 0 deletions gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    history | tail -n 1 -q | awk '$1=""; {print}' | pbcopy