Skip to content

Instantly share code, notes, and snippets.

@uhnomoli
Created January 15, 2026 05:53
Show Gist options
  • Select an option

  • Save uhnomoli/3da854718157da0c0bcdb86a10c6ab73 to your computer and use it in GitHub Desktop.

Select an option

Save uhnomoli/3da854718157da0c0bcdb86a10c6ab73 to your computer and use it in GitHub Desktop.
dots
scriptencoding utf-8
set encoding=utf-8
set ffs=unix,dos
set hidden
set laststatus=2
filetype plugin indent on
syntax on
set background=dark
set termguicolors
colorscheme tinty
"hi Normal ctermbg=NONE guibg=NONE
set number
set relativenumber
set colorcolumn=80
set nowrap
set completeopt=menuone
set wildmenu
set wildmode=longest,full
set shiftwidth=4
set softtabstop=4
set tabstop=8
set expandtab
set smarttab
set autoindent
set ignorecase
set smartcase
set backspace=eol,indent,start
set list listchars=tab:\|\ ,trail:\·
set splitbelow
set splitright
let mapleader=','
nnoremap <leader>, :bp<CR>
nnoremap <leader>. :bn<CR>
let g:airline_theme='tinty'
let g:airline_powerline_fonts=1
let g:airline#extensions#default#section_truncate_width={}
let g:airline#extensions#tabline#enabled=1
let g:airline#extensions#tabline#buffer_nr_show=1
function! AirlineInit()
let g:airline_section_b=airline#section#create(['filetype'])
let g:airline_section_x=airline#section#create(['%P'])
let g:airline_section_y=airline#section#create(['%l'])
let g:airline_section_z=airline#section#create(['%c'])
endfunction
autocmd User AirlineAfterInit call AirlineInit()
# https://gitlab.com/kalilinux/packages/kali-defaults/-/blob/kali/master/etc/skel/.zshrc
# environment variables
if [ -d "${HOME}/.cargo/bin" ]; then
PATH="${HOME}/.cargo/bin:${PATH}"
fi
export CONTAINER_RUNTIME="$(command -v podman || command -v docker)"
export EDITOR=vim
# keybinds
autoload -U history-search-end
zle -N history-beginning-search-backward-end history-search-end
zle -N history-beginning-search-forward-end history-search-end
bindkey "^[OA" history-beginning-search-backward-end
bindkey "^[OB" history-beginning-search-forward-end
# aliases
alias cls="${CONTAINER_RUNTIME} container ls --all"
alias cmk="${CONTAINER_RUNTIME} run -it --rm"
alias di='diff -aNur --color'
alias e='vim'
alias f='find . -name'
alias g='git'
alias gr='grep -ailR'
alias ils="${CONTAINER_RUNTIME} image ls"
alias ll='ls -lA'
alias nst='ss -tulpn'
alias pmk='python3 -m venv .venv && . ./.venv/bin/activate'
alias pst='ps -eo pid,ppid,args'
alias py='ipython3'
alias v='less'
alias xc='xclip -sel clip'
# functions
function venv_nearest {
local directory="$PWD"
if [[ -n "$1" ]]; then
directory="$(readlink -e "$1")"
fi
if [[ -z "$directory" ]]; then
directory="$(pwd)"
fi
local home="$HOME"
if [[ -z "$home" ]]; then
home="$(readlink -fn ~)"
fi
local home_parent="$(dirname "$home")"
if [[ "$directory" != "$home"* ]]; then
echo "[x] Error: current directory is outside of home"
return 1
fi
while [[ "$directory" != "$home_parent" ]]; do
if [[ -f "${directory}/.venv/bin/activate" ]]; then
. "${directory}/.venv/bin/activate"
echo "[.] Using venv in ${directory}"
return 0
fi
directory="$(dirname "$directory")"
done
echo "[x] Error: venv not found"
return 1
}
# starship
eval "$(starship init zsh)"
" Base 16 {{scheme-name}} scheme by {{scheme-author}}
" base16-builder template for vim-airline by fnurl
" The base16-vim-airline theme is designed to be compatible with the
" base16-shell scripts. In order to take advantage of this, install
" the base16-shell themes and follow the instructions for enabling them.
let g:airline#themes#tinty#palette = {}
" GUI color definitions
let s:gui00 = "#{{base00-hex}}"
let s:gui01 = "#{{base01-hex}}"
let s:gui02 = "#{{base02-hex}}"
let s:gui03 = "#{{base03-hex}}"
let s:gui04 = "#{{base04-hex}}"
let s:gui05 = "#{{base05-hex}}"
let s:gui06 = "#{{base06-hex}}"
let s:gui07 = "#{{base07-hex}}"
let s:gui08 = "#{{base08-hex}}"
let s:gui09 = "#{{base09-hex}}"
let s:gui0A = "#{{base0A-hex}}"
let s:gui0B = "#{{base0B-hex}}"
let s:gui0C = "#{{base0C-hex}}"
let s:gui0D = "#{{base0D-hex}}"
let s:gui0E = "#{{base0E-hex}}"
let s:gui0F = "#{{base0F-hex}}"
" Terminal color definitions
let s:cterm00 = "00"
let s:cterm03 = "08"
let s:cterm05 = "07"
let s:cterm07 = "15"
let s:cterm08 = "01"
let s:cterm0A = "03"
let s:cterm0B = "02"
let s:cterm0C = "06"
let s:cterm0D = "04"
let s:cterm0E = "05"
if exists('base16colorspace') && base16colorspace == "256"
let s:cterm01 = "18"
let s:cterm02 = "19"
let s:cterm04 = "20"
let s:cterm06 = "21"
let s:cterm09 = "16"
let s:cterm0F = "17"
else
let s:cterm01 = "10"
let s:cterm02 = "11"
let s:cterm04 = "12"
let s:cterm06 = "13"
let s:cterm09 = "09"
let s:cterm0F = "14"
endif
" The array is in the format: [ guifg, guibg, ctermfg, ctermbg, opts ].
" See "help attr-list" for valid values for the "opt" value.
let s:N1 = [ s:gui01, s:gui0B, s:cterm01, s:cterm0B ]
let s:N2 = [ s:gui06, s:gui03, s:cterm06, s:cterm03 ]
let s:N3 = [ s:gui09, s:gui02, s:cterm09, s:cterm02 ]
let g:airline#themes#tinty#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
let g:airline#themes#tinty#palette.normal_modified = { 'airline_c': [ s:gui0A, '', s:cterm0A, '' ] }
let s:I1 = [ s:gui01, s:gui0D, s:cterm01, s:cterm0D ]
let s:I2 = [ s:gui06, s:gui03, s:cterm06, s:cterm03 ]
let s:I3 = [ s:gui09, s:gui02, s:cterm09, s:cterm02 ]
let g:airline#themes#tinty#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
let g:airline#themes#tinty#palette.insert_modified = g:airline#themes#tinty#palette.normal_modified
let g:airline#themes#tinty#palette.insert_paste = { 'airline_a': s:I3 }
let s:R1 = [ s:gui01, s:gui08, s:cterm01, s:cterm08 ]
let s:R2 = [ s:gui06, s:gui03, s:cterm06, s:cterm03 ]
let s:R3 = [ s:gui09, s:gui02, s:cterm09, s:cterm02 ]
let g:airline#themes#tinty#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3)
let g:airline#themes#tinty#palette.replace_modified = g:airline#themes#tinty#palette.normal_modified
let s:V1 = [ s:gui01, s:gui0E, s:cterm01, s:cterm0E ]
let s:V2 = [ s:gui06, s:gui03, s:cterm06, s:cterm03 ]
let s:V3 = [ s:gui09, s:gui02, s:cterm09, s:cterm02 ]
let g:airline#themes#tinty#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
let g:airline#themes#tinty#palette.visual_modified = g:airline#themes#tinty#palette.normal_modified
let s:IA1 = [ s:gui05, s:gui02, s:cterm05, s:cterm02 ]
let s:IA2 = [ s:gui05, s:gui02, s:cterm05, s:cterm02 ]
let s:IA3 = [ s:gui05, s:gui02, s:cterm05, s:cterm02 ]
let g:airline#themes#tinty#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3)
let g:airline#themes#tinty#palette.inactive_modified = g:airline#themes#tinty#palette.normal_modified
let g:airline#themes#tinty#palette.accents = { 'red': [ s:gui08, '', s:cterm08, '' ] }
" Here we define the color map for ctrlp. We check for the g:loaded_ctrlp
" variable so that related functionality is loaded iff the user is using
" ctrlp. Note that this is optional, and if you do not define ctrlp colors
" they will be chosen automatically from the existing palette.
if !get(g:, 'loaded_ctrlp', 0)
finish
endif
let g:airline#themes#tinty#palette.ctrlp = airline#extensions#ctrlp#generate_color_map(
\ [ s:gui07, s:gui02, s:cterm07, s:cterm02, '' ],
\ [ s:gui07, s:gui04, s:cterm07, s:cterm04, '' ],
\ [ s:gui05, s:gui01, s:cterm05, s:cterm01, 'bold' ])
" Remove color variables
unlet s:gui00 s:gui01 s:gui02 s:gui03 s:gui04 s:gui05 s:gui06 s:gui07 s:gui08 s:gui09 s:gui0A s:gui0B s:gui0C s:gui0D s:gui0E s:gui0F
unlet s:cterm00 s:cterm01 s:cterm02 s:cterm03 s:cterm04 s:cterm05 s:cterm06 s:cterm07 s:cterm08 s:cterm09 s:cterm0A s:cterm0B s:cterm0C s:cterm0D s:cterm0E s:cterm0F
" vim:filetype=vim
shell = "zsh -c '{}'"
default-scheme = "base16-eris"
[[items]]
name = "tinted-vim"
path = "https://github.com/tinted-theming/tinted-vim"
hook = "cp -f %f ~/.vim/colors/tinty.vim"
supported-systems = ["base16", "base24"]
themes-dir = "colors"
[[items]]
name = "tinted-vim-airline"
path = "/home/kali/projects/system/tinted-vim-airline"
hook = "cp -f %f ~/.vim/pack/dist/start/vim-airline-themes/autoload/airline/themes/tinty.vim"
supported-systems = ["base16"]
themes-dir = "themes"
base16:
filename: themes/{{ scheme-system }}-{{ scheme-slug }}.vim
supported-systems: [base16]
add_newline = false
format = """
$all\
$python\
${custom.python-venv}\
$line_break\
$character"""
[aws]
symbol = "aws "
[azure]
symbol = "az "
[buf]
format = "via [$symbol]($style)"
symbol = "buf "
[bun]
format = "via [$symbol]($style)"
symbol = "bun "
[c]
symbol = "C "
[character]
error_symbol = "[x](bold red)"
success_symbol = "[>](bold green)"
vimcmd_symbol = "[<](bold green)"
[cmake]
format = "via [$symbol]($style)"
symbol = "cmake "
[cobol]
format = "via [$symbol]($style)"
symbol = "cobol "
[conda]
symbol = "conda "
[crystal]
format = "via [$symbol]($style)"
symbol = "cr "
[custom.python-venv]
command = 'dirname $VIRTUAL_ENV | xargs basename'
format = '[(\($output\) )]($style)'
when = ''' test -n "$VIRTUAL_ENV" '''
[daml]
format = "via [$symbol]($style)"
symbol = "daml "
[dart]
format = "via [$symbol]($style)"
symbol = "dart "
[deno]
format = "via [$symbol]($style)"
symbol = "deno "
[directory]
read_only = " ro"
[docker_context]
symbol = "docker "
[dotnet]
format = "[$symbol(🎯 $tfm )]($style)"
symbol = ".NET "
[elixir]
format = 'via [$symbol]($style)'
symbol = "exs "
[elm]
format = 'via [$symbol]($style)'
symbol = "elm "
[erlang]
format = 'via [$symbol]($style)'
[fennel]
format = 'via [$symbol]($style)'
symbol = "fnl "
[fossil_branch]
symbol = "fossil "
[gcloud]
symbol = "gcp "
[git_branch]
symbol = "git "
[git_commit]
tag_symbol = " tag "
[git_status]
ahead = ">"
behind = "<"
deleted = "x"
diverged = "<>"
renamed = "r"
[gleam]
format = 'via [$symbol]($style)'
symbol = "gleam "
[golang]
format = 'via [$symbol]($style)'
symbol = "go "
[gradle]
format = 'via [$symbol]($style)'
symbol = "gradle "
[guix_shell]
symbol = "guix "
[haxe]
format = 'via [$symbol]($style)'
[helm]
format = 'via [$symbol]($style)'
[hg_branch]
symbol = "hg "
[java]
format = 'via [$symbol]($style)'
symbol = "java "
[julia]
format = 'via [$symbol]($style)'
symbol = "jl "
[kotlin]
format = 'via [$symbol]($style)'
symbol = "kt "
[lua]
format = 'via [$symbol]($style)'
symbol = "lua "
[memory_usage]
symbol = "memory "
[meson]
format = 'via [$symbol]($style)'
symbol = "meson "
[nats]
symbol = "nats "
[nim]
format = 'via [$symbol]($style)'
symbol = "nim "
[nix_shell]
symbol = "nix "
[nodejs]
format = 'via [$symbol]($style)'
symbol = "nodejs "
[ocaml]
format = 'via [$symbol(\($switch_indicator$switch_name\) )]($style)'
symbol = "ml "
[opa]
format = 'via [$symbol]($style)'
symbol = "opa "
[os.symbols]
AIX = "aix "
AlmaLinux = "alma "
Alpaquita = "alq "
Alpine = "alp "
Amazon = "amz "
Android = "andr "
Arch = "rch "
Artix = "atx "
CachyOS = "cach "
CentOS = "cent "
Debian = "deb "
DragonFly = "dfbsd "
Emscripten = "emsc "
EndeavourOS = "ndev "
Fedora = "fed "
FreeBSD = "fbsd "
Garuda = "garu "
Gentoo = "gent "
HardenedBSD = "hbsd "
Illumos = "lum "
Kali = "kali "
Linux = "lnx "
Mabox = "mbox "
Macos = "mac "
Manjaro = "mjo "
Mariner = "mrn "
MidnightBSD = "mid "
Mint = "mint "
NetBSD = "nbsd "
NixOS = "nix "
Nobara = "nbra "
OpenBSD = "obsd "
OpenCloudOS = "ocos "
openEuler = "oeul "
openSUSE = "osuse "
OracleLinux = "orac "
Pop = "pop "
Raspbian = "rasp "
Redhat = "rhl "
RedHatEnterprise = "rhel "
Redox = "redox "
RockyLinux = "rky "
Solus = "sol "
SUSE = "suse "
Ubuntu = "ubnt "
Ultramarine = "ultm "
Unknown = "unk "
Uos = "uos "
Void = "void "
Windows = "win "
[package]
symbol = "pkg "
[perl]
format = 'via [$symbol]($style)'
symbol = "pl "
[php]
format = 'via [$symbol]($style)'
symbol = "php "
[pijul_channel]
symbol = "pijul "
[pulumi]
format = 'via [$symbol$stack]($style)'
symbol = "pulumi "
[purescript]
format = 'via [$symbol]($style)'
symbol = "purs "
[python]
format = 'via [$symbol]($style)'
symbol = "py "
[quarto]
format = 'via [$symbol]($style)'
symbol = "quarto "
[raku]
format = 'via [$symbol]($style)'
symbol = "raku "
[red]
format = 'via [$symbol]($style)'
[rlang]
format = 'via [$symbol]($style)'
[ruby]
format = 'via [$symbol]($style)'
symbol = "rb "
[rust]
format = 'via [$symbol]($style)'
symbol = "rs "
[scala]
symbol = "scala "
[spack]
symbol = "spack "
[solidity]
format = 'via [$symbol]($style)'
symbol = "solidity "
[status]
symbol = "[x](bold red) "
[sudo]
symbol = "sudo "
[swift]
format = 'via [$symbol]($style)'
symbol = "swift "
[terraform]
symbol = "terraform "
[typst]
format = 'via [$symbol]($style)'
symbol = "typst "
[vagrant]
format = 'via [$symbol]($style)'
[vlang]
format = 'via [$symbol]($style)'
[zig]
format = 'via [$symbol]($style)'
symbol = "zig "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment