Avoiding Shell Hell: Aliases to the rescue

Avoiding Shell Hell: Aliases to the rescue

Aliases are a hack to developer productivity. Developers spend a couple of time typing long commands from Git to Docker and Kubernetes when these could be aliased saving us the time to achieve more. In this talk, I will expand on the tips and tricks developers can apply to achieve more in less time. Presented at forLoop Lagos Summit

56a88675ec0294dd7b1bf35d3c52b67d?s=128

Chiamaka Ikeanyi

March 08, 2019
Tweet

Transcript

  1. 1.

    Avoiding Shell Hell: Aliases to the rescue Lagos Summit 2019

    | Chiamaka Ikeanyi March 8, 2019 @ Zone Tech Park, Gbagada
  2. 9.
  3. 10.

    Why are aliases important? @chiamakaikeanyi • Spend less time typing

    • Reduce the chances of typos in a long command • The secret to speeding up your terminal workflow
  4. 13.

    @chiamakaikeanyi Consider this Scenario Client 1 Website You $ kubectl

    get pods | grep $podName $ kubectl logs $podName $ kubectl exec -it $podName bash Client 2
  5. 15.

    Aliases instruct the shell to replace one string with another

    when executing commands. @chiamakaikeanyi
  6. 16.

    • Git • Docker • Kubernetes • . . .

    Popular usage @chiamakaikeanyi
  7. 17.
  8. 20.

    gac "Fix filters" gpo patch/filters git add . git commit

    -m "Fix filters" git push origin patch/filters Works Smart Works Hard
  9. 31.

    nano ~/.zshrc open ~/.zshrc code ~/.zshrc alias @chiamakaikeanyi Accessing your

    Aliases NB: Substitute .zshrc with the shell you’re using - .bashrc or .bash_profile ...
  10. 36.

    Tomorrow is mystery But you can save time By using

    Aliases - Chiamaka Ikeanyi @chiamakaikeanyi Yesterday is history