From 54cf6268e7eddd1f8bce90f74e1170b0f8f1e07f Mon Sep 17 00:00:00 2001 From: agausto <69407729+agausto@users.noreply.github.com> Date: Thu, 23 Mar 2023 13:21:02 -0500 Subject: [PATCH] Fixed bug in autojump j() for sh --- Examples.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Examples.md b/Examples.md index 470d5d8..6375f62 100644 --- a/Examples.md +++ b/Examples.md @@ -1651,7 +1651,7 @@ j() { fi if [[ $# -eq 0 ]]; then - cd "$(autojump -s | sort -k1gr | awk -F : '$1 ~ /[0-9]/ && $2 ~ /^\s*\// {print $1 $2}' | fzf --height 40% --reverse --inline-info --preview "$preview_cmd" --preview-window down:50% | awk '{print $2}')" + cd "$(autojump -s | sort -k1gr | awk -F : '$1 ~ /[0-9]/ && $2 ~ /^\s*\// {print $1 $2}' | fzf --height 40% --reverse --inline-info --preview "$preview_cmd" --preview-window down:50% | cut -d$'\t' -f2- | sed 's/^\s*//')" else cd $(autojump $@) fi