diff options
Diffstat (limited to 'examples/plugin_pmount.py')
-rw-r--r-- | examples/plugin_pmount.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/plugin_pmount.py b/examples/plugin_pmount.py index 61ee0dbd..ba61b0e5 100644 --- a/examples/plugin_pmount.py +++ b/examples/plugin_pmount.py @@ -16,6 +16,8 @@ UMOUNT_KEY = '<alt>M' LIST_MOUNTS_KEY = '<alt>N' old_hook_init = ranger.api.hook_init + + def hook_init(fm): try: fm.execute_console("map {key} shell -p lsblk".format(key=LIST_MOUNTS_KEY)) |