Skip to content

Instantly share code, notes, and snippets.

@andyrufasto
Last active October 3, 2020 05:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andyrufasto/30834ba7ed26b21e1ccc02da010bc2e6 to your computer and use it in GitHub Desktop.
Save andyrufasto/30834ba7ed26b21e1ccc02da010bc2e6 to your computer and use it in GitHub Desktop.
Ranger config
set preview_images true
set preview_images_method ueberzug
set draw_borders true
map cx shell chmod +x %s
default_linemode devicons
# sintaxis:
# <condición 1>, <condición 2>, ... = comando
# ext <regexp> | de extensión $1
ext docx?|pptx?|xlsx?|od[dfgpst] = libreoffice "$@"
# mime <regexp> | tipo de archivo de $1
mime ^text, label editor = vim "$@"
!mime ^text, ext md|sh|tex|py|r|rb|js|sh|php = vim -- "$@"
# flag f: setsid $command >& /dev/null &
mime ^video, flag f = mpv -- "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment