summary refs log tree commit diff stats
path: root/ranger.py
Commit message (Expand)AuthorAgeFilesLines
* ranger.py: more fixeshut2010-01-121-2/+2
* ranger.py: cleanup/fixhut2010-01-111-9/+8
* fixed #31, cd-after-exit works even after pressing ^Chut2010-01-111-1/+12
* added license informationhut2010-01-081-3/+17
* F1 key (inside console) for viewing information about the commandhut2009-12-291-1/+1
* shorten comment in ranger.pyhut2009-12-261-11/+5
* implemented OpenConsolehut2009-12-251-2/+2
* random updateshut2009-12-251-3/+16
* tons of stuffhut2009-12-171-1/+1
* merged main with __init__hut2009-12-121-1/+1
* restructurationshut2009-12-111-2/+4
* changing implementation of optionshut2009-12-061-3/+6
* structural improvementshut2009-12-011-46/+9
* random improvementshut2009-11-291-2/+2
* implemented colorschemes.hut2009-11-291-10/+10
* started to implement colorschemeshut2009-11-291-6/+11
* restructurationhut2009-11-281-33/+33
* embedded wrapper.sh into ranger.pyhut2009-11-271-0/+12
* cd-after-exithut2009-11-271-4/+17
* general improvementhut2009-11-271-1/+1
* more VROOMhut2009-11-271-0/+38
# it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # # ---------------------------------------------------------------------------- # # An embedded shell script. It allows you to change the directory # after you exit ranger by starting it with: source ranger ranger """": if [ $1 ]; then $@ && cd "$(grep \^\' ~/.ranger/bookmarks | cut -b3-)" else echo "usage: source path/to/ranger.py path/to/ranger.py" fi return 1 """ # Redefine the docstring, since the previous one was hijacked to # embed a shellscript. __doc__ = """Ranger - file browser for the unix terminal""" # Importing the main method may fail if the ranger directory # is neither in the same directory as this file, nor in one of # pythons global import paths. try: from ranger.__main__ import main except ImportError: import sys if '-d' not in sys.argv and '--debug' not in sys.argv: print("Can't import the main module.") print("To run an uninstalled copy of ranger,") print("launch ranger.py in the top directory.") else: raise else: main()