denisidoro / navi

An interactive cheatsheet tool for the command-line
Apache License 2.0
14.93k stars 498 forks source link

installing on Ubuntu #805

Closed monajalal closed 8 months ago

monajalal commented 1 year ago
$ bash <(curl -sL https://raw.githubusercontent.com/denisidoro/navi/master/scripts/install)
Downloading https://github.com/denisidoro/navi/releases/download/v2.20.1/navi-v2.20.1-x86_64-unknown-linux-musl.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 2005k  100 2005k    0     0  8846k      0 --:--:-- --:--:-- --:--:-- 8846k
navi

✔ Finished
✔ navi is now available at /home/azureuser/.cargo/bin/navi

To call navi, restart your shell or reload your .bashrc-like config file

Check https://github.com/denisidoro/navi for more info

$ source ~/.bashrc
$ navi
navi was unable to call fzf.
                Please make sure it's correctly installed.
                Refer to https://github.com/junegunn/fzf for more info.

then after installing fzf: sudo apt install fzf

I get this error:

$ navi
invalid preview window layout: up:2:nohidden
invalid preview window layout: up:2:nohidden
invalid preview window layout: up:2:nohidden
invalid preview window layout: up:2:nohidden
invalid preview window layout: up:2:nohidden
invalid preview window layout: up:2:nohidden
welcome[bot] commented 1 year ago

Thanks for opening your first issue here! In case you're facing a bug, please update navi to the latest version first. Maybe the bug is already solved! :)

scillidan commented 1 year ago

See https://github.com/denisidoro/navi/issues/447. You can do them in turn: cd ~ sudo apt remove fzf git clone https://github.com/junegunn/fzf .fzf bash .fzf/install fzf --version Then, navi

Robert-Ernst commented 1 year ago

Reopening:


$ bash <(curl -sL https://raw.githubusercontent.com/denisidoro/navi/master/scripts/install)
Downloading https://github.com/denisidoro/navi/releases/download/v2.22.1
2.20.1/navi-v2.22.1
2.20.1-x86_64-unknown-linux-musl.tar.gz...
curl: (3) URL using bad/illegal format or missing URL
tar (child): navi.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
mv: cannot stat './navi': No such file or directory
✖ Unable to install navi. Please check https://github.com/denisidoro/navi for alternative installation instructions
monajalal commented 10 months ago

did not work

(clean-pvnet) mona@ada:~$  git clone https://github.com/junegunn/fzf .fzf
Cloning into '.fzf'...
remote: Enumerating objects: 13003, done.
remote: Counting objects: 100% (2172/2172), done.
remote: Compressing objects: 100% (394/394), done.
remote: Total 13003 (delta 1928), reused 1889 (delta 1766), pack-reused 10831
Receiving objects: 100% (13003/13003), 5.14 MiB | 13.92 MiB/s, done.
Resolving deltas: 100% (8332/8332), done.
(clean-pvnet) mona@ada:~$  bash .fzf/install
Downloading bin/fzf ...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 1415k  100 1415k    0     0   253k      0  0:00:05  0:00:05 --:--:--  313k
  - Checking fzf executable ... 0.44.1
Do you want to enable fuzzy auto-completion? ([y]/n) y
Do you want to enable key bindings? ([y]/n) y

Generate /home/mona/.fzf.bash ... OK

Do you want to update your shell configuration files? ([y]/n) y

Update /home/mona/.bashrc:
  - [ -f ~/.fzf.bash ] && source ~/.fzf.bash
    + Added

Finished. Restart your shell or reload config file.
   source ~/.bashrc  # bash

Use uninstall script to remove fzf.

For more information, see: https://github.com/junegunn/fzf
(clean-pvnet) mona@ada:~$  source ~/.bashrc 
(base) mona@ada:~$  fzf --version
0.44.1 (d7d2ac3)
(base) mona@ada:~$ navi
Command 'navi' not found, did you mean:
  command 'savi' from deb savi (1.5.1-4)
  command 'nvi' from deb nvi (1.81.6-17)
  command 'navit' from deb navit (0.5.6+dfsg.1-1)
  command 'nabi' from deb nabi (1.0.0-4build1)
Try: sudo apt install <deb name>

@scillidan

scillidan commented 10 months ago

@monajalal I install it on wsl2. Have you forgotten to set fzf in .zshrc or .bashrc?

image

image