navi cheatsheets
navi Cheats
I store my personalized cheat files for Navi here. Most of the cheats shared by others felt overkill or weren’t relevant to my needs. So I created my own cheat file with the commands I use frequently and occasionally.
Metadata
- Cheat Files Location:
/home/$USER/.local/share/navi/cheats/<dirName__cheats> - Permissions: 644
- Ownership: $USER:$USER
How to Create a Cheat Sheet?
Head inside the cheat files locations
cd /home/$USER/.local/share/navi/cheats
The .cheat files are stored here, which can available in the navi commands list.
- Create a file with the extension of
.cheat
touch ansible.cheat
- Configure the
.cheatfile to easily identify the command in thenavicommands list.
nvim ansible.cheat
- Add a title in the first line, which helps us identify which of the commands are part of
ansible.cheat
% ansible
- Add comment/description of the command and enter the command itself:
# Ping all host using (ping module) Ad-Hoc Command
ansible all -m ping
# Run shell command on all hosts
ansible all -m shell -a "<e.g: uptime>"