Skip to content

Instantly share code, notes, and snippets.

@dylansalim3
Last active June 25, 2024 14:11
Show Gist options
  • Save dylansalim3/9a93486ca50a0ea29a60b0a8d408d8b9 to your computer and use it in GitHub Desktop.
Save dylansalim3/9a93486ca50a0ea29a60b0a8d408d8b9 to your computer and use it in GitHub Desktop.
Oh My ZSH plugin

Oh My Zsh Plugins

zsh-autocomplete vs zsh-autosuggestions comparison

  • zsh-autocomplete have more function, auto suggestions based on history, recommendations on certain commands and list all files when file related command used, able to select the correct commands from the recommendations
  • zsh-autosuggestions is just history based suggestions without list of commands to choose from

zsh-syntax-highlighting + zsh-autocomplete

  1. Clone this repository into $ZSH_CUSTOM/plugins (by default ~/.oh-my-zsh/custom/plugins)

    git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
    git clone https://github.com/marlonrichert/zsh-autocomplete.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autocomplete
  2. Add the plugin to the list of plugins for Oh My Zsh to load (inside ~/.zshrc):

    plugins=( 
        zsh-syntax-highlighting
        zsh-autocomplete
    )
  3. Start a new terminal session.

bindkey "^[[1;5C" forward-word
bindkey "^[[1;5D" backward-word
bindkey "^[[3~" delete-char
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment