Skip to content

Repository files navigation

Dotfiles

This repository contains my dotfiles and some scripts that I use everyday.

System dependencies

# Debian system dependencies
sudo apt install tmux zsh neovim

Installation

# Run the following in your terminal
curl --proto '=https' --tlsv1.2 -sSf https://nmkup.nuimk.com | sh

# If you have GPG installed, a more secure option is available
gpg --keyserver keyserver.ubuntu.com --recv-keys 0x551CFC14F537B532DED712EAE84E0669828CF62A
curl -O https://nmkup.nuimk.com/nmkup-init.sh.asc
if gpg --batch --yes -o nmkup-init.sh nmkup-init.sh.asc; then sh nmkup-init.sh; fi

# To start tumx
~/.nmk/bin/nmk
# To start zsh
~/.nmk/login.sh

Development note

The generated zsh configuration files are not commited to git history. In order to automatically generate them, use following options

  • use git hooks by setting git config core.hooksPath .githooks
  • run zsh/watchexec-merge.sh

Directory structure

- bin    # Reserved directory for the launcher and updater
- config # Custom $HOME/.config
- devbin # Utility scripts
- vim    # Vim configuration
- zsh    # Zsh configuration

zsh outside tmux

Overwrite ~/.zshenv with

export ZDOTDIR=~/.nmk/zsh
source $ZDOTDIR/.zshenv

Then run cp ~/.nmk/zsh/{template/,}zprofile

Log out and log back in.

Environment variables

# Mark this computer as a development machine
#  - user@host will not be shown on zsh prompt
#  - run development tools without warning
NMK_DEV=[1|0]

Integrating with powerline fonts

To make vim-airline display powerline symbols correctly, you need to install a patched font. Instructions can be found in the official powerline documentation, or just download and install prepatched fonts from powerline-font repository.

All tags in this repository are signed with my public key, run below command to get it.

gpg --recv-keys 0x28B07F9036262EEF4D5B2B21B837E20D47A47347

About

My portable working environment

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages