Skip to content

yifeiyin/CONFIGS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CONFIGS

My git, zsh, vim, vscode configs.

Highlights

Git:

  • gs, gc, gco for git status, commit, checkout
  • gpr to auto create a PR on GitHub based on branch history

Oh-my-zsh:

  • vi-mode: vim for current shell command
  • autocd: cd by typing directory name only
  • ctrl-r to search command history with fzf
  • ctrl-z to suspend current command
  • vimrc to quickly edit shell rc file based on shell environment
  • greph find text with grep, highlight only, no filtering

VSCode Keybindings:

  • cmd 1-9: Switch to editor tabs 1-9
  • cmd E: Delete current line
  • cmd Q: Quick open previous editor
  • for more, see vscode/

Files

Shell

  • zshrc: used on my primary machines
  • bashrc: used when zsh is not available (raspberry pi, cloud, etc)
  • sh_aliases: used by both rc files
  • vimrc: Vim configuration with plugins and settings

Tools

Initial Setup

macOS Pre-requisites: Homebrew

  1. Install Xcode Command Line Tools:

    xcode-select --install
  2. Disable accent menu:

    defaults write -g ApplePressAndHoldEnabled -bool false
  3. Install essential tools:

    # Oh My Zsh
    sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
    
    # fzf
    brew install fzf
    
    # Python, Node, Bun
    brew install pyenv nvm
    curl -fsSL https://bun.sh/install | bash
    
    # Development tools
    brew install gh
    brew install --cask docker tableplus
    brew install --cask visual-studio-code iterm2 obsidian

Apply configs

Use

./apply

to copy sh_aliases, vimrc, zshrc from this repo to appropriate places. It will show a diff, ask for confirmation, and create a backup for each file.

About

My git, zsh, vim, vscode configs.

Resources

Stars

Watchers

Forks

Contributors