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

Pimp my terminal

Pimp my terminal

My tips and tricks presentation for unix day at DEIUC, Coimbra

Miguel Laginha

November 04, 2015
Tweet

More Decks by Miguel Laginha

Other Decks in Programming

Transcript

  1. Pimp my terminal
    A tale of how I reached satisfactory console karma

    View Slide

  2. $ whoami
    • Software engineer
    • /home/dei2001/mmachado
    • sciencematters.io
    • Previously 9y @IPNlis
    • g ‘miguel laginha’

    View Slide

  3. | Summary
    • Premisses
    • Terminal vs iTerm2
    • Bash vs Zsh vs fish shell
    • Pimpin' time
    • Tips and tricks

    View Slide

  4. Why are $(we) here?

    View Slide

  5. “terminal”
    indeed.com job trends

    View Slide

  6. “cloooouuuuud”
    indeed.com job trends

    View Slide

  7. “PaaS”
    indeed.com job trends

    View Slide

  8. “docker”
    indeed.com job trends

    View Slide

  9. Which terminal app
    to use?

    View Slide

  10. View Slide

  11. View Slide

  12. Which shell?
    ps -o comm $$

    View Slide

  13. Shell options
    $ Bash # default
    $ Zsh # awesome
    $ Fish shell # so awesome it hurts

    View Slide

  14. Let’s start pimpin’
    #copypaste

    View Slide

  15. # first and foremost
    $ ruby -e "$(curl -fsSL https://
    raw.githubusercontent.com/Homebrew/install/
    master/install)"

    View Slide

  16. # plus.. homebrew-cask!
    $ brew install caskroom/cask/brew-cask

    View Slide

  17. # use homebrew to install zsh
    $ brew install zsh
    $ chsh -s `which zsh`
    $ vim ~/.zshrc # hack away

    View Slide

  18. # install oh my zsh
    $ curl -L http://install.ohmyz.sh | sh
    $ vim ~/.zshrc # hack away

    View Slide

  19. # Zsh syntax highlighting
    $ cd ~/.oh-my-zsh && git clone git://
    github.com/zsh-users/zsh-syntax-
    highlighting.git
    $ source ~/.oh-my-zsh/zsh-syntax-
    highlighting/zsh-syntax-highlighting.zsh

    View Slide

  20. # Z
    $ brew install z
    $ . `brew —prefix`/etc/profile.d/z.sh #
    outdated! Z is now a oh-my-zsh plugin

    View Slide

  21. # Power vim with plugins
    $ curl -L https://bit.ly/janus-bootstrap |
    bash

    View Slide

  22. # Pimp iTerm2
    $ wget https://raw.githubusercontent.com/
    chriskempson/tomorrow-theme/master/iTerm2/
    Tomorrow%20Night.itermcolors

    View Slide

  23. Tips and tricks #mac

    View Slide

  24. $ open .

    View Slide

  25. $ cat .zshrc | pbcopy
    $ pbpaste >> .zshrc_backup

    View Slide

  26. $ mdfind -onlyin ~/Documents
    report

    View Slide

  27. $ say “This is probably useless”
    $ brew update && brew upgrade && say
    “finished brewing”

    View Slide

  28. What else? #cool
    stuff

    View Slide

  29. # curl.io
    https://curl.io
    # do it live
    http://doitlive.readthedocs.org/en/latest/
    # ascii cinema
    https://asciinema.org

    View Slide

  30. «Never settle»
    Productivity matters.

    View Slide

  31. $ Thank you_


    @brecke

    View Slide