Skip to content

FullByte/navi-cheatsheet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Navi Cheatsheet

This is my navi cheatsheet collection.

Once you ran the install script below you should find a subfolder named FullByte__navi-cheatsheet in your navi config-path. Run navi info config-path to get your local navi path e.g. ~/.local/share/navi/cheats. Navi should now be ready to use.

To use navi press control+g or type navi.

example

Install Navi + This cheatsheet

The following script will install and configure navi for bash and zsh add this repository and update the local cheatsheet on every boot:

Install Navi

Make sure to have the latest udpates as well as cargo, git and fzf installed, then install navi:

sudo apt update && sudo apt -y upgrade
sudo apt -y install cargo fzf git
cargo install --locked navi

Update profile

Add Cargo to your PATH by updating your profile sudo nano ~/.profile then add:

# Cargo
if [ -d "$HOME/.cargo/bin" ] ; then
  PATH="$HOME/.cargo/bin:$PATH"
fi

Config bash

Update the .bashrc sudo nano ~/.bashrc with these entries

### NAVI ###
alias navi="~/.cargo/bin/navi"
eval "$(navi widget bash)"

Config zsh

Update the .zshrc sudo nano ~/.zshrc with these entries

### NAVI ###
alias navi="~/.cargo/bin/navi"
eval "$(navi widget zsh)"

Install Cheatsheet

Install this cheatsheet and update the cheatsheet on each boot (using git).

git clone "https://github.com/FullByte/navi-cheatsheet" "$(navi info cheats-path)/FullByte__navi-cheatsheet"
(crontab -l 2>/dev/null; echo "@reboot sleep 22 && cd \"$(navi info cheats-path)/FullByte__navi-cheatsheet\" && git pull") | crontab -

Releases

No releases published

Packages

No packages published

Languages