All Projects → yanzhang0219 → dotfiles

yanzhang0219 / dotfiles

Licence: other
🔧 My dotfiles on  macOS for Neovim, Zsh, kitty, lf, etc

Programming Languages

shell
77523 projects
lua
6591 projects
Vim Script
2826 projects
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to dotfiles

fm-nvim
🗂 Neovim plugin that lets you use your favorite terminal file managers (and fuzzy finders) from within Neovim.
Stars: ✭ 114 (+26.67%)
Mutual labels:  ranger, vifm, lf
dotfiles
dotfiles for the command line home
Stars: ✭ 21 (-76.67%)
Mutual labels:  iterm2, alacritty, yabai
linux-workspace
This is the greatest management of all time
Stars: ✭ 19 (-78.89%)
Mutual labels:  ranger, kitty
dotfiles
🍀 Vim/Neovim + Tmux + Zsh + Alacritty = Build your own fantastic development environment
Stars: ✭ 65 (-27.78%)
Mutual labels:  ranger, alacritty
dotfiles
dotfiles of my linux setup
Stars: ✭ 25 (-72.22%)
Mutual labels:  ranger, alacritty
dotfiles
My dotfiles for Bash/Zsh, Vim/Neovim, Doom Emacs, tmux, Git, terminal emulators, JupyterLab, aria2, mpv, Nix and Homebrew
Stars: ✭ 149 (+65.56%)
Mutual labels:  kitty, alacritty
dotfiles
The best dotfiles ever to be dot-filed
Stars: ✭ 17 (-81.11%)
Mutual labels:  kitty, alacritty
dotfiles
My Linux settings and configs
Stars: ✭ 33 (-63.33%)
Mutual labels:  ranger, kitty
dotfiles
My arch setup script and dotfiles
Stars: ✭ 37 (-58.89%)
Mutual labels:  config, alacritty
dotfiles
Blugil's dotfiles
Stars: ✭ 23 (-74.44%)
Mutual labels:  iterm2, kitty
dotfiles
github.com/casprwang/dotfiles
Stars: ✭ 30 (-66.67%)
Mutual labels:  alacritty, karabiner-elements
flate
🌈 Colorful dark themes
Stars: ✭ 35 (-61.11%)
Mutual labels:  kitty, alacritty
dotfiles
my personal dotfiles mac
Stars: ✭ 39 (-56.67%)
Mutual labels:  alacritty, yabai
configuration
Config files
Stars: ✭ 12 (-86.67%)
Mutual labels:  ranger, vifm
dotfiles
Personal dotfiles for macOS and Manjaro.
Stars: ✭ 20 (-77.78%)
Mutual labels:  alacritty, yabai
dotfiles
The config that makes me a productivity whiz 🧙‍♂️
Stars: ✭ 36 (-60%)
Mutual labels:  config, yabai
dotfiles
My dotfiles, use it with care 😅
Stars: ✭ 20 (-77.78%)
Mutual labels:  config, kitty
Flex-AntiCheat
Flex AntiCheat - Optimized Configs For Multiple AntiCheats
Stars: ✭ 37 (-58.89%)
Mutual labels:  config
configster
Rust library for parsing configuration files
Stars: ✭ 19 (-78.89%)
Mutual labels:  config
react-native-config-reader
🛠 Easily access any of the build configs defined in build.gradle or info.plist from your JS code.
Stars: ✭ 44 (-51.11%)
Mutual labels:  config

.dotfiles

My dotfiles for macOS and Linux. Just cherry pick the piece of code you totally understand.

platform last commit

image

Features

Neovim: The text editor I've been in love with

Zsh: Shell

  • Use Zim to manage Zsh plugins
  • The prompt theme is Powerlevel10k
  • fzf: Fuzzy finder I use widely in my daily workflow. I created some fzf-based scripts to boost productivity
  • bin: Very useful scripts

wezterm/kitty/alacritty: Terminal

yabai and skhd: Tiling window manager

lf/vifm/ranger: Console file manager

karabiner-Elements: keyboard customizer

  • Caps Lock as Esc and L-Ctrl
  • R-Command as HYPER key
  • L-Ctrl as MEH key

How I am managing the dotfiles

Using a bare repository. The dotfiles can reside where they are. No symlinks needed.

Initial setup

Create a bare repository to store the history.

git init --bare $HOME/dotfiles

Create an alias in zshrc, tell Git where the history and the working tree (snapshot) live.

alias cfg='git --git-dir=$HOME/dotfiles/ --work-tree=$HOME'

Tell Git not to show all the untracked files, otherwise all files under $HOME will be shown when running git status.

cfg config status.showUntrackedFiles no

Set up the remote repository for syncing

cfg remote add origin https://github.com/xxx/dotfiles.git

Done! Now we can manage our dotfiles.

cfg status
cfg add ~/.config/zsh
cfg commit -m "zsh config"
cfg push origin master

Clone to another machine

Clone the dotfiles into a bare repository.

git clone --bare https://github.com/xxx/dotfiles.git $HOME/dotfiles

Checkout the actual content from the bare repository to $HOME.

git --git-dir=$HOME/dotfiles/ --work-tree=$HOME checkout

Done!

Notes

If using vim-fugitive in Neovim, to make it work with this bare repo correctly, we should modify ~/dotfiles/config as below

...

[core]
  bare = false
  worktree = /Users/rockyzhang/

...
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].