Skip to content
/ dotfiles Public

My portable working environment

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

nui/dotfiles

Repository files navigation

dotfiles

This repository contains my dot files 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

Directory structure

- bin    # Utility shell scripts
- vim    # Vim configuration
- zsh    # Zsh configuration

Tmux navigation

F1 -> Next pane
F2 -> Last window
F3 -> Previous window
F4 -> Next window
F5 -> Zoom pane
F6 -> Choose tree

Shift+Fx  -> Function key
F12 Fx    -> Function key

F12 F12   -> detach
F12 (1-9) -> Select window number x

Terminal setup

To use 256 colors, Set TERM environment variable to xterm-256color.

Konsole (KDE Terminal):

  • Right click and choose Edit Current Profiles
  • Click edit button next to environment label
  • Change TERM=xterm to TERM=xterm-256color

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_DEVELOPMENT=[true|false]

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