add nnn to dotfiles and include image viewing plugin
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user