Skip to content

Instantly share code, notes, and snippets.

@michaeltroger
Last active December 13, 2021 20:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaeltroger/d63a68daefec9e4eb7f0bd54aa8e2f12 to your computer and use it in GitHub Desktop.
Save michaeltroger/d63a68daefec9e4eb7f0bd54aa8e2f12 to your computer and use it in GitHub Desktop.
Oh My Zsh - My recommendations

I'm a professional programmer and I'm using the Oh My Zsh shell for more than 5 years on Linux as well as Mac OS devices. The productivity and the joy of working with it is just so much better than with the default shell.

If you don't have Oh My ZSH installed yet, install it via: sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

Here my recommendation for the configuration file .zshrc:

plugins=(
  git
  zsh-autosuggestions
  autojump
)

While git is installed by default, zsh-autosuggestions and autojump need to be installed manually:

  • zsh-autosuggestions: git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions see also here
  • autojump: sudo apt install autojump on Linux or brew install autojump on Mac OS, see also here

Make sure to restart your shell after the ZSH config file was changed, in order for the changes to be available.

Explanation:

  • git always makes it visible when your current folder is a Git project. Furthermore it shows the current branch and whether you have changed files. Espacially useful are also the aliases for the most important git commands like gp for git push
  • zsh-autosuggestions previews possible autocompletion options while you're typing
  • autojump allows you to quickly jump to your most important directories
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment