add nnn to dotfiles and include image viewing plugin

This commit is contained in:
Matt Anderson
2026-04-15 12:23:03 -05:00
parent 2daf1b0be2
commit 294387c572
3 changed files with 558 additions and 5 deletions

View File

@@ -27,8 +27,6 @@ alias oc='opencode'
# export GOOGLE_CLOUD_PROJECT=claude-code-tibco
# export VERTEX_LOCATION=global
alias vd='vd --theme asciimono'
export EDITOR='nvim'
export PATH=$PATH:/home/matt/Applications/lua_ls/bin
@@ -41,6 +39,9 @@ export K9S_CONFIG_DIR=~/.config/k9s
#
n ()
{
export NNN_PLUG='p:preview-tui'
export NNN_PREVIEWIMGPROG="chafa -f kitty --animate=off --polite=on"
# Block nesting of nnn in subshells
[ "${NNNLVL:-0}" -eq 0 ] || {
echo "nnn is already running"
@@ -62,7 +63,7 @@ n ()
# The command builtin allows one to alias nnn to n, if desired, without
# making an infinitely recursive alias
command nnn -C "$@"
command nnn -C -a "$@"
[ ! -f "$NNN_TMPFILE" ] || {
. "$NNN_TMPFILE"