Mercurial > dotfiles
changeset 473:e368c8ae2a4b
Fix universal ctags config on Windows.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 18 Sep 2019 14:58:18 -0700 |
parents | 97412ea9b3fa |
children | 265442d4def8 |
files | install.py |
diffstat | 1 files changed, 12 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/install.py Sun Jul 28 22:26:24 2019 -0700 +++ b/install.py Wed Sep 18 14:58:18 2019 -0700 @@ -251,6 +251,14 @@ shell=True) +def install_universal_ctags(): + # On Windows, u-ctags has a bug where it outputs double-backslashes. + if is_windows: + writelines('~/ctags.d/global.ctags', [ + '--output-format=e-ctags' + ]) + + @only_on_nix def install_tmux(): mklink('tmux/tmux.conf', '~/.tmux.conf') @@ -418,7 +426,7 @@ def install_wintools(cfg, force=False): if not cfg.has_section('wintools'): return - + for name, arch in cfg.items('wintools'): args = ['scoop.cmd', 'install', name] if arch: @@ -430,7 +438,7 @@ class FatalInstallerError(Exception): pass - + def main(): print("dotfiles installer") @@ -475,7 +483,7 @@ '-f', '--force', action='store_true', help="Force installation by overwriting things.") args = parser.parse_args() - + # Print list and exit if needed. if args.list: print("Available modules to install:") @@ -492,7 +500,7 @@ selected_mods = set(mod_names) selected_mods.remove('all') selected_mods.difference_update([neg[3:] for neg in args.module if neg.startswith('no-')]) - + for mn in selected_mods: func = getattr(this_mod, 'install_%s' % mn) funcs.append((mn, func))