Ranger Custom Settings
Basic
If you want to custom your ranger,you should do the below changes:
1
2
3
4
5 # In your .zshrc
export RANGER_LOAD_DEFAULT_RC=false
# In the console
ranger --copy-config=allthen,you’ll see the default configretion in
.config/rangerfolder,also therc.conf
| filename | Description |
|---|---|
| rc.conf | The ranger configuration |
| rifle.conf | The default application to open a file |
| scope.sh | Define how to scope a file in ranger |
| commands.py | Custom the commands in ranger |
1
- Tap
hjklcan move the cursor - Tap
HJKLcan move the cursor to the history action place - Tap
[]could get into another folder - Tap
zhorCtrl+hto turn on/off the hidden files - Tap
oto sort the files with some rules(we can useoaob,etc…) - Tap
/to search the file in the current folder (We can custom+-to jump to the next result) - Tap
Shift+sto get into a cursor file - Tap
ypto copy the filepath to the clipboard - Tap
cwto rename the file - Tap
yyto copy a file - Tap
ppto paste a copied file - Tap
ddto cut a file - Tap
dDto delete a file - Tap
wto get the task board(And tapddcan cancel a task) - Tap
vto select all the files in the current folder
Plugins
You can get the plugins on ranger’s official GitHub page: Ranger Plugins
ranger-devicons2
This plugin can add some cool icons for the different folders or files
- You need to install the Nerd-fonts .
1 | git clone https://github.com/ryanoasis/nerd-fonts.git |
- You should change the iterm2(or another console applications) fonts.

- You should append these lines to the
rc.conffile
1 | default_linemode devicons2 |
Finally,you’ll get the dope icons
Ranger Custom Settings