tmux.conf

This commit is contained in:
2015-12-06 11:12:03 +01:00
parent 808c31f53e
commit c0d34f5137
2 changed files with 31 additions and 8 deletions

View File

@@ -60,9 +60,9 @@ def install_vim(pdotfiles, force=False):
def install_tmux(pdotfiles, force=False):
phome = Path(os.path.expanduser("~")).resolve()
phome_tmuxrc = phome / Path(".tmuxrc")
phome_tmuxrc = phome / Path(".tmux.conf")
preltmuxrc = Path("tmux/tmuxrc")
preltmuxrc = Path("tmux/tmux.conf")
try:
pdotfiles_tmuxrc = pdotfiles.resolve().relative_to(phome.resolve()) / preltmuxrc
@@ -73,7 +73,7 @@ def install_tmux(pdotfiles, force=False):
phome_tmuxrc.unlink() # only kill symlinks
if phome_tmuxrc.exists():
print('.tmuxrc already there!')
print('.tmux.conf already there!')
else:
print("Symlinking {} to {}".format(phome_tmuxrc, pdotfiles_tmuxrc))
phome_tmuxrc.symlink_to(pdotfiles_tmuxrc)