about summary refs log tree commit diff stats
path: root/html/linux/bootstrap/016index_addressing.cc.html
Commit message (Expand)AuthorAgeFilesLines
* .Kartik Agaram2021-11-091-9/+9
* .Kartik Agaram2021-06-261-4/+4
* .Kartik Agaram2021-06-241-4/+4
* .Kartik Agaram2021-04-211-4/+4
* .Kartik Agaram2021-03-231-0/+217
00 implemented colorschemes.' href='/akspecs/ranger/commit/ranger.py?h=v1.7.0&id=f027adc08ce0d15717c7694956f23ff637553543'>f027adc0 ^
3d566884 ^
f8e96a97 ^
3d566884 ^
f8e96a97 ^
465bff73 ^





f027adc0 ^
f8e96a97 ^

0b5c4cbe ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34

                 

                                               
 


                                                                  


                                                                 







                                                                   
 
    
                                    
 
                                   





                                                               
 

              
 
#!/usr/bin/python
# coding=utf-8
# ranger: Browse your files inside the console.


# An embedded shell script. Assuming this file is /usr/bin/ranger,
# this hack allows you to use the cd-after-exit feature by typing:
# source ranger ranger
# Now when you quit ranger, it should change the directory of the
# parent shell to where you have last been in ranger.
# Works with at least bash and zsh.
"""":
if [ $1 ]; then
	cd "`$1 --cd-after-exit $@ 3>&1 1>&2 2>&3 3>&-`"
else
	echo "use with: source path/to/ranger.py path/to/ranger.py"
fi
return 1
"""

try:
	from ranger.main import main

except ImportError as errormessage:
	if str(errormessage).endswith("main"):
		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()