summaryrefslogtreecommitdiffstats
path: root/.config
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2025-09-06 07:37:23 +0200
committerJoe <rbo@gmx.us>2025-09-06 07:37:23 +0200
commitf226caa22628e83b0f2bdd59c251e76e433759ee (patch)
tree8bfbf7ae8d18863694d904a932c7caac7c74f901 /.config
parentup (diff)
downloaddotfiles-bsd-f226caa22628e83b0f2bdd59c251e76e433759ee.tar.gz
dotfiles-bsd-f226caa22628e83b0f2bdd59c251e76e433759ee.tar.bz2
dotfiles-bsd-f226caa22628e83b0f2bdd59c251e76e433759ee.tar.xz
dotfiles-bsd-f226caa22628e83b0f2bdd59c251e76e433759ee.tar.zst
dotfiles-bsd-f226caa22628e83b0f2bdd59c251e76e433759ee.zip
up
Diffstat (limited to '')
-rw-r--r--.config/env4
-rwxr-xr-x.config/nnn/plugins/joe_fzfcd20
2 files changed, 22 insertions, 2 deletions
diff --git a/.config/env b/.config/env
index 8a76d34..a5f85df 100644
--- a/.config/env
+++ b/.config/env
@@ -99,11 +99,11 @@ export FZF_DEFAULT_COMMAND='fd -i -H -c never -j9 -E .git -E dotfiles-bsd -E .cc
export FZF_DEFAULT_OPTS='--height 60% --layout=reverse --border=left --tabstop=4'
export LESS='-R -c -S'
export MPD_HOST="$XDG_DATA_HOME"/mpd/socket
-export NNN_OPTS='aerRQ'
+export NNN_OPTS='aAerRQ'
export NNN_COLORS='4132'
export NNN_FCOLORS='030304020005060801ac0507'
export NNN_ARCHIVE="\\.(7z|a|ace|alz|arc|arj|bz|bz2|cab|cpio|deb|gz|jar|lha|lz|lzh|lzma|lzo|rar|rpm|rz|t7z|tar|tbz|tbz2|tgz|tlz|txz|tZ|tzo|war|xpi|xz|Z|zip)$"
-export NNN_PLUG='t:fzcd'
+export NNN_PLUG='t:joe_fzfcd'
export RUSTFLAGS='-L /usr/local/lib'
export WWW_HOME='https://start.duckduckgo.com/'
export YTFZF_HIST='0'
diff --git a/.config/nnn/plugins/joe_fzfcd b/.config/nnn/plugins/joe_fzfcd
new file mode 100755
index 0000000..4c74f88
--- /dev/null
+++ b/.config/nnn/plugins/joe_fzfcd
@@ -0,0 +1,20 @@
+#!/usr/bin/env perl
+
+use strict;
+use warnings;
+use Env qw(NNN_PIPE PWD);
+
+sub main {
+ my $dir;
+
+ $dir = `fd -t d -L | fzf`;
+ chomp($dir);
+ open(FH, '>>', $NNN_PIPE) or die $!;
+ print FH '0c' . $PWD . '/' . $dir;
+ close(FH);
+ return;
+}
+
+main();
+
+__END__