Update for Python 3
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
This commit is contained in:
parent
2755650734
commit
a6973ace15
5
bash_completion.d/README.md
Normal file
5
bash_completion.d/README.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# Adding new completions
|
||||||
|
|
||||||
|
Add a file ending with the `.sh` extension, which contains the completion
|
||||||
|
configuration. This will then automatically be picked up.
|
||||||
|
|
8
sync.py
8
sync.py
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Dotfiles syncronization.
|
Dotfiles syncronization.
|
||||||
@ -47,15 +47,15 @@ def main():
|
|||||||
if is_link_to(dotfile, source):
|
if is_link_to(dotfile, source):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
response = raw_input("Overwrite file `%s'? [y/N] " % dotfile)
|
response = input("Overwrite file `%s'? [y/N] " % dotfile)
|
||||||
if not response.lower().startswith('y'):
|
if not response.lower().startswith('y'):
|
||||||
print "Skipping `%s'..." % dotfile
|
print("Skipping `%s'..." % dotfile)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
force_remove(dotfile)
|
force_remove(dotfile)
|
||||||
|
|
||||||
os.symlink(source, dotfile)
|
os.symlink(source, dotfile)
|
||||||
print "%s => %s" % (dotfile, source)
|
print("%s => %s" % (dotfile, source))
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
Loading…
Reference in New Issue
Block a user