Skip to content

Instantly share code, notes, and snippets.

@teddyzhai
Last active May 26, 2025 08:32
Show Gist options
  • Save teddyzhai/d5d6c18390e3867f6ba1995346f02f74 to your computer and use it in GitHub Desktop.
Save teddyzhai/d5d6c18390e3867f6ba1995346f02f74 to your computer and use it in GitHub Desktop.
dev setup

zsh theme: simple, agnoster.

zsh extensions: inspriation: https://gist.github.com/n1snt/454b879b8f0b7995740ae04c5fb5b7df

sudo apt install build-essential neovim fzf bat fdfind gpgg

sudo apt install zsh 
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
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/zdharma-continuum/fast-syntax-highlighting.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/fast-syntax-highlighting
git clone --depth 1 -- https://github.com/marlonrichert/zsh-autocomplete.git $ZSH_CUSTOM/plugins/zsh-autocomplete

mkdir -p ~/.local/bin
ln -s /usr/bin/batcat ~/.local/bin/bat
ln -s /usr/bin/fdfind /home/ted/.local/bin/fd

sudo mkdir -p /etc/apt/keyrings
wget -qO- https://raw.githubusercontent.com/eza-community/eza/main/deb.asc | sudo gpg --dearmor -o /etc/apt/keyrings/gierens.gpg
echo "deb [signed-by=/etc/apt/keyrings/gierens.gpg] http://deb.gierens.de stable main" | sudo tee /etc/apt/sources.list.d/gierens.list
sudo chmod 644 /etc/apt/keyrings/gierens.gpg /etc/apt/sources.list.d/gierens.list
sudo apt update
sudo apt install -y eza

.zshrc updates:

source /usr/share/doc/fzf/examples/key-bindings.zsh

if [ -x "$(command -v exa)" ]; then
    alias ls="exa"
    alias la="exa --long --all --group"
fi

alias cat="bat --style=plain"

path+=('/home/jialzhai/.local/bin/')

fzf: add source /usr/share/doc/fzf/examples/key-bindings.zsh. Replace that line with plugins=(git zsh-autosuggestions zsh-syntax-highlighting fast-syntax-highlighting zsh-autocomplete) in .zshrc. add path+=('/home/tzhai/.local/bin') in .zshrc.

vimrc

syntax on
colorscheme desert
set hls
set wrap
set nocompatible " Use Vim defaults (much better!)
set backspace=2 " allow backspacing over everything in insert mode
set autoindent " always set autoindenting on
set textwidth=0 " Don't wrap words by default
set nobackup " Don't keep a backup file
set viminfo='20,\"50 " keep history in .viminfo file, no more than 50
set history=50 " keep 50 lines of command line history
set ruler " show the cursor position all the time
set showcmd " Show (partial) command in status line.
set showmatch " Show matching brackets.
set ignorecase " Do case insensitive matching
set incsearch " Incremental search
set number " Switch Linenumbers on (to turn off: set nonumber)
set autowrite " Autosave before commands like :next and :make
set magic " Extended RegExp in search
set tabstop=4
set expandtab shiftwidth=4
"set mouse=a
set gfn=Fixed\ 9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment