mirror of
https://github.com/denisidoro/navi.git
synced 2026-08-01 06:25:49 +00:00
parent
ac39ac630c
commit
8f2bc5f7e7
4 changed files with 3 additions and 3 deletions
2
navi
2
navi
|
|
@ -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 "$@"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue