diff options
author | hut <hut@lavabit.com> | 2009-07-03 17:18:10 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2009-07-03 17:18:10 +0200 |
commit | 27ebfe639466906a9bdaeb3a8ade280e07921122 (patch) | |
tree | f143e6edf51a683892ad817199531e41e9dc802e /code/extensions | |
parent | be1b7c36653f0cb40441648fa324ea2ddc173446 (diff) | |
download | ranger-27ebfe639466906a9bdaeb3a8ade280e07921122.tar.gz |
--cd switch
allows to cd to the last dir in the parent shell. type ?z inside ranger for more infos
Diffstat (limited to 'code/extensions')
-rw-r--r-- | code/extensions/basic.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/code/extensions/basic.rb b/code/extensions/basic.rb index 1e890a04..dd2f0fd0 100644 --- a/code/extensions/basic.rb +++ b/code/extensions/basic.rb @@ -75,9 +75,13 @@ class String ## peter's song.mp3 -> 'peter'\''s song.mp3' ## ## system("mplayer #{ ~some_video_file }") - def ~ - "'#{ gsub("'", "'\\\\''") }'" + def bash_escape + "'#{bash_escape_no_quotes}'" end + def bash_escape_no_quotes + "#{ gsub("'", "'\\\\''") }" + end + alias ~ bash_escape end class Numeric |