Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 17 lines (13 sloc) 399 Bytes
#!/usr/bin/env python
import os
def l(target, new):
target = os.path.abspath(os.path.expanduser(target))
new = os.path.abspath(os.path.expanduser(new))
if os.path.exists(new):
print "{0} exists".format(new)
os.symlink(target, new)
if __name__ == '__main__':
l('dotbashrc', '~/.bashrc')
l('dotbash_profile', '~/.bash_profile')
l('.', '~/.bash.d')
Jump to Line
Something went wrong with that request. Please try again.