From e74225a8182ed9910d9cbdaca902d04199495b1a Mon Sep 17 00:00:00 2001 From: tmu Date: Sat, 16 Dec 2023 13:25:40 -0800 Subject: fish --- fish/functions/autojump.fish | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 fish/functions/autojump.fish (limited to 'fish/functions') diff --git a/fish/functions/autojump.fish b/fish/functions/autojump.fish new file mode 100644 index 0000000..a265845 --- /dev/null +++ b/fish/functions/autojump.fish @@ -0,0 +1,12 @@ +function j + set new_path (autojump $argv) + + if test -d "$new_path" + echo $new_path + cd "$new_path" + else + echo "autojump: directory '$argv' not found" + echo "Try \`autojump --help\` for more information." + false + end +end -- cgit v1.2.3