summary refs log tree commit diff stats
path: root/tests/stdlib/tstreams2.nim
Commit message (Collapse)AuthorAgeFilesLines
* require errormsg to be specified before file.Arne Döring2018-12-111-1/+0
|
* fix discard output: sectionJamesP2015-09-271-2/+1
|
* add test for newFileStream() opening a missing fileJamesP2015-09-261-0/+14
ut <hut@lavabit.com> 2009-11-28 17:29:57 +0100 restructuration' href='/akspecs/ranger/commit/ranger.py?h=v1.9.2&id=3d566884280b1db24cb9fa13adde3985f0e7c5a2'>3d566884 ^
a66c4a26 ^



3de15ddd ^
a66c4a26 ^


f027adc0 ^
3de15ddd ^

3d566884 ^
a1d7ed6e ^
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
35
36

                 
                                                
 
 


                                                                  


                                                                 



                                                        
                                                                


        
 

                                                           
    
                               
 
                                   





                                                               
 

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


# 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 "usage: source path/to/ranger.py path/to/ranger.py"
fi
return 1
"""

__doc__ = """Ranger - file browser for the unix terminal"""

try:
	from ranger 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()