Skip to content

Latest commit

 

History

History
131 lines (96 loc) · 4.49 KB

README.md

File metadata and controls

131 lines (96 loc) · 4.49 KB
                            █▀▀█ █▀▀ █▀▀█ █▀▀ █▀▀█ █▀▀▄ █▀▀█ █░░ 
                            █░░█ █▀▀ █▄▄▀ ▀▀█ █░░█ █░░█ █▄▄█ █░░ 
                            █▀▀▀ ▀▀▀ ▀░▀▀ ▀▀▀ ▀▀▀▀ ▀░░▀ ▀░░▀ ▀▀▀
   ██████╗  ██████╗ ████████╗███████╗██╗██╗     ███████╗███████╗
   ██╔══██╗██╔═══██╗╚══██╔══╝██╔════╝██║██║     ██╔════╝██╔════╝
   ██║  ██║██║   ██║   ██║   █████╗  ██║██║     █████╗  ███████╗
   ██║  ██║██║   ██║   ██║   ██╔══╝  ██║██║     ██╔══╝  ╚════██║
██╗██████╔╝╚██████╔╝   ██║   ██║     ██║███████╗███████╗███████║
╚═╝╚═════╝  ╚═════╝    ╚═╝   ╚═╝     ╚═╝╚══════╝╚══════╝╚══════╝

Kuntau's dotfiles

build status

Prerequisites

  • git
  • zsh
  • curl

Stacks

Category Software
shell zsh, nu
tui editor vim, neovim
gui editor sublime, vscode
player mpv, iina, vlc
terminal wezterm, kitty, iTerm2
multiplexer tmux, zellij?
finder fd, bfs
fuzzy finder fzf, skim, fzy?
file manager nnn
note taking obsidian, ia writer
disk usage ncdu, dua, dust
prompt powerlevel10k, starship
jumper zsh-z, zoxide
package manager homebrew, pip, pnpm
grep ripgrep
previewer bat, glow, mdcat?
git helper delta, diff
git gui gitui, subl. merge
ssh mosh
fonts operator mono, nerd font
LSCOLORS vivid
theme ayu, tokyonight

Installation

git clone git://github.com/kuntau/dotfiles.git ~/dotfiles

Make the install script executable

cd ~/dotfiles
chmod a+x install.sh
./install.sh

Change to the ~/dotfiles directory, and fetch submodules:

cd ~/dotfiles
git submodule update --init --recursive

# For git 1.6.1 or above you can use something similar to easy pull all submodule:
git submodule foreach git pull

# For git v2+
git submodule init && git submodule update

Manage submodule

# UPDATE: Update submodules
git submodule foreach git pull origin master --depth=1

# PRUNE: For submodules we don't need all commit
git submodule foreach git pull origin master --depth=1
git submodule foreach git gc --prune=all

Install (neo)vim package manager

For Vim 8.x

curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

For Neovim

Not needed anymore since neovim plugins manager can bootstrap themselves.

NOTES

Delete submodule

submodule="folder/submodule"

git rm "$submodule"
rm -rf ".git/modules/$submodule"
git config -f ".git/config" --remove-section "submodule.$submodule" 2> /dev/null

# Commit the change
git commit -m "Remove submodule $submodule"

Test terminal formatting

echo -e "\e[1mbold\e[0m"
echo -e "\e[3mitalic\e[0m"
echo -e "\e[3m\e[1mbold italic\e[0m"
echo -e "\e[4munderline\e[0m"
echo -e "\e[9mstrikethrough\e[0m"
echo -e "\e[31mHello World\e[0m"
echo -e "\x1B[31mHello World\e[0m"

sudo systemctl unmask sleep.target suspend.target hibernate.target hybrid-sleep.target

P/S. It is hard & PITA to maintain the same dotfiles across OS X, Linux & Windows (Cygwin)