$30 off During Our Annual Pro Sale. View Details »

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

Chiamaka Ikeanyi

March 08, 2019
Tweet

More Decks by Chiamaka Ikeanyi

Other Decks in Technology

Transcript

  1. Avoiding Shell Hell: Aliases to the rescue Lagos Summit 2019

    | Chiamaka Ikeanyi March 8, 2019 @ Zone Tech Park, Gbagada
  2. 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
  3. @chiamakaikeanyi Consider this Scenario Client 1 Website You $ kubectl

    get pods | grep $podName $ kubectl logs $podName $ kubectl exec -it $podName bash Client 2
  4. Aliases instruct the shell to replace one string with another

    when executing commands. @chiamakaikeanyi
  5. • Git • Docker • Kubernetes • . . .

    Popular usage @chiamakaikeanyi
  6. gac "Fix filters" gpo patch/filters git add . git commit

    -m "Fix filters" git push origin patch/filters Works Smart Works Hard
  7. nano ~/.zshrc open ~/.zshrc code ~/.zshrc alias @chiamakaikeanyi Accessing your

    Aliases NB: Substitute .zshrc with the shell you’re using - .bashrc or .bash_profile ...
  8. Tomorrow is mystery But you can save time By using

    Aliases - Chiamaka Ikeanyi @chiamakaikeanyi Yesterday is history