Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: https://svn.sixfeetup.com/svn/private/claytron/dotfiles/trunk@49385 7abc7aa1-7e52-db11-9331-00508bd72530
- Loading branch information
Showing
1 changed file
with
6 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,23 @@ | ||
import __future__ | ||
# Most of the time i use ipython, which i think ignores this file. | ||
# but if i'm not using ipython, let's set some stuff up... | ||
|
||
# first try and set up rlcompleter2 | ||
try: | ||
import rlcompleter2 | ||
print('') | ||
rlcompleter2.setup() | ||
del rlcompleter2 | ||
except ImportError: | ||
# then try and setup plain ol' readline | ||
try: | ||
import rlcompleter, readline | ||
readline.parse_and_bind('tab: complete') | ||
print "NO rlcompleter2 for nice experiences" | ||
print('') | ||
print("NO rlcompleter2 for nice experiences") | ||
del rlcompleter | ||
del readline | ||
# then, well fuck, you're screwed | ||
except ImportError: | ||
print "NO readline at all for you, sadness..." | ||
print('') | ||
print("NO readline at all for you, sadness...") |