Refactoring life

  1. Search
  2. Subscribe
  3. Archive
  4. Random
Newer
Older
  • Copy pastable ps1

    Often I want to copy/paste a line from my bash terminal and re-run it. Rather than hunt for the $ and copy only the command, I set my ps1 to be a comment. Bash makes this hard so I use the : operator to create a NOP command, and ; to signify that a second command on the same line should be run.

    my ps1 looks like this now:

        : [bbeecher@Iago workspace]$;

    so I can now do something like this:

        : [bbeecher@Iago genomic]$;: [bbeecher@Iago genomic]$;ls

    And just get the ls at the end.


    Posted on November 13, 2011

  • fuckyeahdementia
  • whydoihaveablog
  • emergentfutures
  • jephjacques
  • subtilitas
  • troisenator
  • maxistentialist
  • christielouwho
  • laughingsquid
  • allthewaydown
  • proustitute
  • theatlantic
  • thedrunkenmoogle
  • littleworries
  • hellonewyork
  • mattlovescomics
  • criminalwisdom
  • spiritedmag
  • delgrosso
  • themonkeysyouordered
  • futuristgerd
  • theshipthatflew
  • chr0n1x
  • epic4chan
  • futuramb
  • smarterplanet
  • fred-wilson
  • thatandycohen
  • j2d2
  • viscerality
  • j2labs
  • lookatthisfuckingjuggalo
  • legoexpress
  • bookshelfporn
  • 9-bits
  • powells
  • tomoatmeal
  • godelescherbach
  • babiesareyum
  • alligatortower
  • sablesma
  • solfdaggen
  • jgzogaib
  • emilenox
  • adamlongwill
  • radicalquaker
  • fuckyeahclassical
  • justyummyfood
  • aznstarlette
  • nbr
  • icodeforlove
  • floodlite
  • scottkurtz
  • senchainc
  • notch
  • thelategreatme
  • fuckyeahjaneway
  • azul
  • kaffeinkatmandu
  • jqtouch
  • allthingsoregon
  • aurai
  • thejuggalog
  • timmyintransit
  • confusionist
  • gremmllin
  • fareastvagabond
  • play-grounds
  • calixte
  • lowres
  • mycatisretarded
  • tipsforpros
  • troublewith

Field Notes Theme. Designed by Manasto Jones. Powered by Tumblr.