Skip to content

DenDen047/nanokit

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

23 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation


                                                   88         88
                                                   88         ""    ,d
                                                   88               88
8b,dPPYba,   ,adPPYYba,  8b,dPPYba,    ,adPPYba,   88   ,d8   88  MM88MMM
88P'   `"8a  ""     `Y8  88P'   `"8a  a8"     "8a  88 ,a8"    88    88
88       88  ,adPPPPP88  88       88  8b       d8  8888[      88    88
88       88  88,    ,88  88       88  "8a,   ,a8"  88`"Yba,   88    88,
88       88  `"8bbdP"Y8  88       88   `"YbbdP"'   88   `Y8a  88    "Y888


πŸ› οΈ nanokit - minimal development environment

Platform Powered by Pixi License: MIT

  • ⚑ A lightweight, fast, and efficient cross-platform development setup for Linux (x86/arm), OSX
  • ✨ No sudo required - Everything installs to $HOME/.pixi, completely user-local
  • πŸͺ„ Pixi as a shell tool manager - Keep your tools up-to-date by declarative management
  • πŸ¦€ dotter as a simple dotfile manager that links / unlinks dotfiles in nanokit
  • 🐚 zsh 🎩 sheldon πŸš€ starship - Modern shell experience with plugin management

βš™οΈ Setup - All you need is pixi

Step 1: Install pixi

Install pixi following the official installation guide:

curl -fsSL https://pixi.sh/install.sh | sh

If your system doesn't have curl, you can use wget:

wget -qO- https://pixi.sh/install.sh | sh

Warning

Now restart your terminal or shell to make the installation effective.

Step 2: Clone this repository

Install GitHub CLI (recommended) or git:

pixi global install gh
# or
pixi global install git

Using πŸ”€ git:

git clone https://github.com/denkiwakame/nanokit.git
cd nanokit

Using :octocat: gh (recommended - includes SSH key setup):

gh auth login

# Where do you use GitHub? β†’ GitHub.com
# What is your preferred protocol? β†’ SSH
# Generate a new SSH key? β†’ Yes
# How would you like to authenticate? β†’ Login with a web browser
gh repo clone denkiwakame/nanokit
cd nanokit

Using πŸ”€ git:

git clone https://github.com/denkiwakame/nanokit.git
cd nanokit

Step 3-a: nanokit install (recommended for new environment)

./nanokit install

That's all you need to get started!

Caution

nanokit configures zsh as the default shell for the terminal emulator (e.g. tmux) and use it only for interactive sessions. We recommend using a system-managed shell such as /usr/bin/zsh (or /bin/bash) as the login shell.

Pixi installs zsh in a user-space environment and locks it together with its runtime dependencies (e.g. ncurses, libgcc; see pixi global tree --environment zsh).

If this environment fails, using it as a login shell can prevent system login (e.g. via SSH or WSL). https://tim.siosm.fr/blog/2023/12/22/dont-change-defaut-login-shell/

Step 3-b: Manual Installation (recommended for existing environment)

If you prefer more control over the installation process or are setting up on an existing machine with custom configurations

Install dotter

pixi global install dotter-rs

Symlink configuration files

Check what will be symlinked (dry run):

dotter -d       # dry run: confirm what happens

Deploy the symlinks:

dotter deploy

Install utility tools

Install all necessary tools defined in the global configuration:

pixi global sync

Start your 🐚 zsh

Launch zsh shell or tmux:

zsh
tmux

Everything is setup automatically via 🎩 sheldon.

πŸ”„ Reset All Environment

dotter undeploy -d
dotter undeploy
touch ~/.pixi/manifests/pixi-global.toml
pixi global sync

Step 4: Install fonts required for πŸš€ starship (optional)

For local terminals, installing fonts is recommended. Fonts will be installed to $HOME/.local/fonts.

🐧 Linux 🍎 Mac OS πŸͺŸ Windows Terminal
./setup_fonts.sh brew install --cask font-hack-nerd-font choco install nerd-fonts-hack Note: Requires administrator privileges

See Starship Presets for more customization options.

🎨 Customization

πŸ› οΈ Global Tools

The following tools are available through pixi-global.toml:

Tool Description Exposed Command GitHub
πŸ”€ git Version control system git, git-cvsserver, git-receive-pack, git-shell, git-upload-archive, git-upload-pack, gitk, scalar git/git
:octocat: gh GitHub CLI gh cli/cli
πŸ”€ git-lfs Version control system git-lfs git/git
πŸ”€ tig TUI client for Git tig jonas/tig
🐚 zsh Z shell zsh, zsh-5.9 zsh-users/zsh
🎩 sheldon Fast and configurable shell plugin manager sheldon rossmacarthur/sheldon
πŸš€ starship Minimal, beautifl prompt for any shell starship starship/starship
πŸ¦€ dotter-rs Dotfile manager dotter SuperCuber/dotter
πŸ” sshs TUI client for ssh sshs quantumsheep/sshs
πŸ“Š htop Interactive process viewer htop htop-dev/htop
πŸ“Š bottom System monitor btm ClementTsang/bottom
πŸ”Ž fzf Fuzzy finder fzf junegunn/fzf
πŸ“ tree Directory tree display tree Old-Man-Programmer/tree
πŸ“ go-ghq Git repository manager ghq x-motemen/ghq
πŸŒ€ zoxide Smart directory jumper zoxide ajeetdsouza/zoxide
πŸ› οΈ make Build automation tool make mirror/make
πŸ“‹ xsel X11 clipboard manipulation xsel kfish/xsel
πŸ—„οΈ pueue Local job queue manager pueue, pueued Nukesor/pueue
πŸͺŸ tmux Terminal multiplexer tmux tmux/tmux
πŸ’½ dua-cli Disk usage analyzer dua Byron/dua-cli
πŸ’½ diskonaut Disk space navigator diskonaut imsnif/diskonaut
πŸ¦‡ bat Better cat with syntax highlighting bat sharkdp/bat
πŸ“‚ lsdeluxe Modern ls replacement lsd lsd-rs/lsd
βš™οΈ nodejs Node.js runtime node, npm, npx nodejs/node
βš™οΈ jq Command-line JSON processor jq jqlang/jq
🌍 xh Friendly and fast tool for sending HTTP requests xh ducaale/xh
☁️ rclone rsync for cloud storage rclone rclone/rclone
☁️ aws CLI for AWS aws aws_completer aws/aws-cli
πŸ“ neovim Neovim with Node.js, Lua, Python support nvim neovim/neovim
πŸ“ helix A post-modern modal text editor hx helix-editor/helix

Add your favorite tools with:

pixi search <package-name>
pixi global install <package-name>  # e.g. pixi global install python=3.13

This will automatically update the pixi-global.toml configuration.

pixi global update

automatically upgrade all tools except for version-pinned packages.

see Pixi Global: Declarative Tool Installation for details.

πŸš€ Starship Settings

Customize your prompt by editing starship.toml. See Starship Themes.

For detailed configuration options, see the Starship documentation.

🎩 Zsh Plugins

Manage plugins by editing zshrc and sheldon.toml.

For more plugin management options, see the Sheldon documentation.

πŸ¦€ Dotfiles Management

Manage symlinks for dotfiles by editing .dotter/global.toml.

For detailed configuration options, see the dotter documentation.

πŸš€ ghq + zoxide = ❀️

The combination of ghq and zoxide creates a magical workflow for repository management:

πŸ“¦ Repository Management with ghq

ghq provides a clean way to organize remote repository clones. When you run:

ghq get {repo-url}

It automatically clones the repository to a well-structured directory hierarchy under ~/ghq, regardless of your current location. For example:

ghq get https://github.com/user/project
# Creates: ~/ghq/github.com/user/project

🧭 Smart Navigation with zoxide

Once you cd into any directory, zoxide remembers that location. You can then use:

zi  # Interactive fuzzy finder for visited directories
z <partial-name>  # Jump to directory matching the pattern

No more cd ../../../project - just zi and you're there! 🎯

πŸ–₯️ Tmux Key Bindings

The tmux configuration uses Ctrl+a as the prefix key (instead of the default Ctrl+b). Here are the essential key bindings:

Basic Commands

Key Binding Description
Ctrl+a then ? Show help and all key bindings
Ctrl+a then r Reload tmux configuration

Window Management

Key Binding Description
Ctrl+a then c Create new window (in current directory)
Ctrl+a then w Choose window from list
Ctrl+a then n Next window
Ctrl+a then p Previous window

Pane Management

Key Binding Description
Ctrl+a then - Split window horizontally
Ctrl+a then ` `
Ctrl+a then h Move to left pane
Ctrl+a then j Move to bottom pane
Ctrl+a then k Move to top pane
Ctrl+a then l Move to right pane

Copy Mode (Vi-style)

Key Binding Description
Ctrl+a then [ Enter copy mode
v Start selection (in copy mode)
y Copy selection (in copy mode)
q Exit copy mode

πŸ’‘ Tip: All panes and windows are created in the current working directory for better workflow.

πŸ“ Neovim Settings (Optional)

Basic commands to get started:

  • vi - Launch Neovim
  • :q - Quit Neovim
  • :checkhealth - Check Neovim configuration
  • :Lazy - Plugin manager interface
  • Ctrl+P - Fuzzy file finder

πŸ§ͺ Try nanokit in your OS

Want to test nanokit without affecting your current setup? Create a temporary user:

sudo adduser nanokit
su - nanokit
# Try nanokit setup here

Cleanup test user:

sudo userdel -r nanokit    # Remove user and home directory

About

nanokit - a minimal development environment powered by pixi

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Shell 58.3%
  • Lua 41.7%