Skip to content

Instantly share code, notes, and snippets.

@onlurking
Last active February 19, 2024 18:01
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save onlurking/a9537a57600486e6f7408e73f985f4ec to your computer and use it in GitHub Desktop.
Save onlurking/a9537a57600486e6f7408e73f985f4ec to your computer and use it in GitHub Desktop.
Configs for zsh, oh-my-zsh, zsh-autosuggestions, zsh-syntax-highlighting and FZF

Setup

Terminal

Instal oh-my-zsh with curl

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Install fast syntax highlighting

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting

Install zsh autosuggestions

git clone https://github.com/zsh-users/zsh-autosuggestions.git ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions

Install the theme

git clone https://github.com/onlurking/lambda-custom-zsh-theme.git ~/.oh-my-zsh/custom/themes/lambda-custom-zsh-theme

ln -s "$ZSH_CUSTOM/themes/lambda-custom-zsh-theme/lambda-mod.zsh-theme" "$ZSH_CUSTOM/themes/lambda-mod.zsh-theme"

Instal FZF

git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf

~/.fzf/install

Edit the ~/.zshrc

export ZSH="$HOME/.oh-my-zsh"

ZSH_THEME="lambda-mod"

plugins=(git fzf zsh-autosuggestions zsh-syntax-highlighting)

source $ZSH/oh-my-zsh.sh
source $HOME/.profile

[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
@lfom
Copy link

lfom commented Mar 9, 2021

Thank you for this gist. I had never heard about F-Sy-H. Pasting long text really bothered me, and I though it was related to syntax highlighting. It is much better now with F-Sy-H, and being able to pick the color theme is a plus. Vlw, abs. 😉

@nuktpls
Copy link

nuktpls commented Apr 6, 2021

Vlw, abs. 😉

PT-BR -> Tks, hugs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment