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

How To Quit Vim and other CLI Fu

mikebell
April 03, 2014

How To Quit Vim and other CLI Fu

Basic introduction to the command line and the cool things you can do with it.

mikebell

April 03, 2014
Tweet

More Decks by mikebell

Other Decks in Technology

Transcript

  1. HOW TO QUIT VIM!
    AND OTHER COMMAND LINE FU

    View full-size slide

  2. WHO?
    Name - Mike Bell
    Twitter -
    Drupal.org -
    Github -
    Where - CTI Digital - Drupal Technical Architect
    @mikebell_
    mikebell_
    mikebell

    View full-size slide

  3. ANCIENT CHINESE
    PROVERB:
    For a truly unique string ask a student to quit vim

    View full-size slide

  4. IN REALITY...
    :q is all you need
    :wq to save
    :q! when you're editing a file as sudo
    :wq! to save a file when editing as sudo

    View full-size slide

  5. THANKS... ANY
    QUESTIONS?

    View full-size slide

  6. MORE TO THE
    COMMANDLINE
    Your mileage may vary based on OS

    View full-size slide

  7. SHELLS
    Standard - Bash - https://www.gnu.org/software/bash/bash.html
    Awesome - ZSH - http://www.zsh.org/
    Windows Standard- DOS
    Windows New - Powershell

    View full-size slide

  8. CLI PACKAGE MANAGERS
    APT
    Yum
    Brew (or MacPorts)

    View full-size slide

  9. PHP CLI
    PECL/Pear - package managers
    php - itself
    composer - libs and easy autoloading
    sf2 app/console - drush for symfony2 stuff

    View full-size slide

  10. COOL THINGS
    cmatrix
    cowsay

    View full-size slide

  11. HANDY CLI TOOLS
    Ack - grep replacement
    Ack for Drupal - .acrkc customisation
    Screen

    View full-size slide

  12. DRUSH
    A given in drupal
    drushcommands.com
    Drush autocomplete!

    View full-size slide

  13. OH-MY-ZSH
    ZSH on steroids
    Plugins and Themes

    View full-size slide

  14. OH-MY-ZSH PLUGINS
    Git
    Composer
    Symfony 2

    View full-size slide

  15. DOTFILES FOR NOOBS
    What are they?
    Where are they?
    More Info - http://dotfiles.github.io/

    View full-size slide

  16. ITERM2 - TERMINAL++
    Layouts
    Visor

    View full-size slide

  17. GIT EXTRAS
    Cool tools missing from git
    https://github.com/visionmedia/git-extras
    Changelog - git changelog
    Summaries and Statistics - git summary / git info

    View full-size slide

  18. MISC KEYBOARD
    GOODIES
    Ctrl/Cmd on Forms - does magical things
    Most popular sites have shortcuts
    - shift + ? on github

    View full-size slide

  19. SHARING IS CARING!
    Any other examples?

    View full-size slide

  20. THANKS... ANY
    QUESTIONS?

    View full-size slide