# HG changeset patch # User Ludovic Chabant # Date 1568843898 25200 # Node ID e368c8ae2a4b3c731e22d70a7b10c39244c4244b # Parent 97412ea9b3fa98296838012687b485c825975cff Fix universal ctags config on Windows. diff -r 97412ea9b3fa -r e368c8ae2a4b install.py --- 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))