Upgrade to Pro — share decks privately, control downloads, hide ads and more …

ruby -pi -e.bak - Windy City Rails

ruby -pi -e.bak - Windy City Rails

ZSH is awesome

Ba4b0b302231bffb0f685bbef25db0d6?s=128

Bryan Liles

October 06, 2012
Tweet

More Decks by Bryan Liles

Other Decks in Programming

Transcript

  1. ruby -pi.bak -e

  2. #!/bin/*sh

  3. | @bryanl | @thunderboltlabs | #!/bin/*sh My shell is my

    rifle...
  4. | @bryanl | @thunderboltlabs | #!/bin/*sh bash zsh fish

  5. | @bryanl | @thunderboltlabs | #!/bin/*sh bash

  6. | @bryanl | @thunderboltlabs | #!/bin/*sh fish

  7. | @bryanl | @thunderboltlabs | #!/bin/*sh zsh

  8. #!/bin/zsh

  9. | @bryanl | @thunderboltlabs | #!/bin/*sh why zsh?

  10. | @bryanl | @thunderboltlabs | #!/bin/*sh expansions

  11. | @bryanl | @thunderboltlabs | #!/bin/*sh globs

  12. | @bryanl | @thunderboltlabs | #!/bin/*sh vi *(m0) # re-edit

    all files changed today! ls *(^m0) # files NOT modified today ls -l *(m4) # list files modified exactly 4 days ago ls -l *(.m4) # list files modified exactly 4 days ago (ignore directories) vi **/main.php # where ever it is in hierarchy ls -l **/main.{php,js,css} ls fred^erick* # list all files fred* except frederick* ls *.^pdf # list all but pdf's ls (x*~x[3-5]) # list files x* except x3 to x5 ls x^[3-5]* # list files x* except x3 to x5 ls **/*~*/.git/* # ignore all git subdirectories *~* matches a path
  13. | @bryanl | @thunderboltlabs | #!/bin/*sh approximations

  14. | @bryanl | @thunderboltlabs | #!/bin/*sh non-dumb history

  15. | @bryanl | @thunderboltlabs | #!/bin/*sh weird stuff

  16. | @bryanl | @thunderboltlabs | #!/bin/*sh dipping your toe https://github.com/robbyrussell/oh-my-zsh

  17. | @bryanl | @thunderboltlabs | #!/bin/*sh control

  18. | @bryanl | @thunderboltlabs | #!/bin/*sh the ESC hacks autoload

    -U zsh/zle
  19. | @bryanl | @thunderboltlabs | #!/bin/*sh

  20. | @bryanl | @thunderboltlabs | #!/bin/*sh getting around

  21. | @bryanl | @thunderboltlabs | #!/bin/*sh cd

  22. | @bryanl | @thunderboltlabs | #!/bin/*sh pushd/popd

  23. | @bryanl | @thunderboltlabs | #!/bin/*sh dirs -v

  24. | @bryanl | @thunderboltlabs | #!/bin/*sh z https://github.com/rupa/z

  25. | @bryanl | @thunderboltlabs | #!/bin/*sh completions

  26. | @bryanl | @thunderboltlabs | #!/bin/*sh OS X

  27. | @bryanl | @thunderboltlabs | #!/bin/*sh /usr/bin/open

  28. | @bryanl | @thunderboltlabs | #!/bin/*sh homebrew

  29. | @bryanl | @thunderboltlabs | #!/bin/*sh sharing

  30. | @bryanl | @thunderboltlabs | #!/bin/*sh caffeinate

  31. | @bryanl | @thunderboltlabs | #!/bin/*sh pgrep/pkill

  32. | @bryanl | @thunderboltlabs | #!/bin/*sh pbcopy pbpaste

  33. | @bryanl | @thunderboltlabs | #!/bin/*sh Make it your own

  34. | @bryanl | @thunderboltlabs | #!/bin/*sh prompt

  35. | @bryanl | @thunderboltlabs | #!/bin/*sh add some color https://github.com/zsh-users/zsh-syntax-highlighting

  36. | @bryanl | @thunderboltlabs | #!/bin/*sh The basics

  37. | @bryanl | @thunderboltlabs | #!/bin/*sh /usr/bin

  38. | @bryanl | @thunderboltlabs | #!/bin/*sh old school

  39. | @bryanl | @thunderboltlabs | #!/bin/*sh imagemagick ffmpeg

  40. | @bryanl | @thunderboltlabs | #!/bin/*sh

  41. | @bryanl | @thunderboltlabs | #!/bin/*sh required

  42. | @bryanl | @thunderboltlabs | #!/bin/*sh git

  43. | @bryanl | @thunderboltlabs | #!/bin/*sh htop

  44. | @bryanl | @thunderboltlabs | #!/bin/*sh pipebench

  45. | @bryanl | @thunderboltlabs | #!/bin/*sh not quite required

  46. | @bryanl | @thunderboltlabs | #!/bin/*sh command line integrations

  47. | @bryanl | @thunderboltlabs | #!/bin/*sh Required knowledge

  48. | @bryanl | @thunderboltlabs | #!/bin/*sh tcpdump

  49. | @bryanl | @thunderboltlabs | #!/bin/*sh curl

  50. | @bryanl | @thunderboltlabs | #!/bin/*sh httpie https://github.com/jkbr/httpie

  51. | @bryanl | @thunderboltlabs | #!/bin/*sh Editing

  52. | @bryanl | @thunderboltlabs | #!/bin/*sh Building a sandbox

  53. | @bryanl | @thunderboltlabs | #!/bin/*sh ruby -pi.bak -e

  54. | @bryanl | @thunderboltlabs | #!/bin/*sh -e

  55. | @bryanl | @thunderboltlabs | #!/bin/*sh -ne

  56. | @bryanl | @thunderboltlabs | #!/bin/*sh -pe

  57. | @bryanl | @thunderboltlabs | #!/bin/*sh What next?

  58. | @bryanl | @thunderboltlabs | #!/bin/*sh required reading

  59. | @bryanl | @thunderboltlabs | #!/bin/*sh commandlinefu http://www.commandlinefu.com/

  60. | @bryanl | @thunderboltlabs | #!/bin/*sh one thing well http://onethingwell.org

  61. | @bryanl | @thunderboltlabs | #!/bin/*sh zsh lovers http://grml.org/zsh/zsh-lovers.html

  62. | @bryanl | @thunderboltlabs | #!/bin/*sh more zsh tips http://www.zzapper.co.uk/zshtips.html

  63. | @bryanl | @thunderboltlabs | #!/bin/*sh _________ < Thanks! >

    --------- \ ^__^ \ (oo)\_______ (__)\ )\/\ ||----w | || ||