mirror of
https://github.com/denisidoro/navi
synced 2024-11-21 19:13:07 +00:00
commit
8373da2166
1 changed files with 3 additions and 3 deletions
|
@ -279,10 +279,10 @@ install_navi() {
|
||||||
log::success "navi is now available at ${navi_bin_path}"
|
log::success "navi is now available at ${navi_bin_path}"
|
||||||
echoerr
|
echoerr
|
||||||
|
|
||||||
if echo "$PATH" | grep -q "$navi_bin_path"; then
|
if echo "$PATH" | grep -q "$navi_bin_dir"; then
|
||||||
:
|
:
|
||||||
else
|
else
|
||||||
local -r cmd="$(export_path_cmd "$navi_bin_path")"
|
local -r cmd="$(export_path_cmd "$navi_bin_dir")"
|
||||||
append_to_file "${HOME}/.bashrc" "$cmd"
|
append_to_file "${HOME}/.bashrc" "$cmd"
|
||||||
append_to_file "${ZDOTDIR:-"$HOME"}/.zshrc" "$cmd"
|
append_to_file "${ZDOTDIR:-"$HOME"}/.zshrc" "$cmd"
|
||||||
append_to_file "${HOME}/.fishrc" "$cmd"
|
append_to_file "${HOME}/.fishrc" "$cmd"
|
||||||
|
@ -292,7 +292,7 @@ install_navi() {
|
||||||
echo
|
echo
|
||||||
log::note "Check https://github.com/denisidoro/navi for more info"
|
log::note "Check https://github.com/denisidoro/navi for more info"
|
||||||
|
|
||||||
export PATH="${PATH}:${navi_bin_path}"
|
export PATH="${PATH}:${navi_bin_dir}"
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue