Skip to content

Commit

Permalink
Fish: fix widget (#174)
Browse files Browse the repository at this point in the history
Fixes #170 and #171
  • Loading branch information
denisidoro authored Jan 17, 2020
1 parent ac39ac6 commit 8f2bc5f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion navi
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -euo pipefail
export NAVI_HOME="$(cd "$(dirname "$0")" && pwd)"
source "${NAVI_HOME}/src/main.sh"

VERSION="0.17.0"
VERSION="0.17.1"
NAVI_ENV="${NAVI_ENV:-prod}"

opts::eval "$@"
Expand Down
2 changes: 1 addition & 1 deletion navi.plugin.fish
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
function navi-widget -d "Show cheat sheets"
begin
stty sane
env NAVI_USE_FZF_ALL_INPUTS=true navi --print query (commandline) | perl -pe 'chomp if eof' | read -lz result
env NAVI_USE_FZF_ALL_INPUTS=true navi --print (commandline) | perl -pe 'chomp if eof' | read -lz result
and commandline -- $result
end
commandline -f repaint
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/opts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -euo pipefail

opts::extract_help() {
local -r file="${NAVI_HOME}/docstring.txt"
local -r file="${NAVI_HOME}/src/docstring.txt"
cat "$file"
}

Expand Down

0 comments on commit 8f2bc5f

Please sign in to comment.