1
0
Fork 0

nvim: Better way to fix $PATH

This commit is contained in:
Daniel Kempkens 2022-02-15 23:52:36 +01:00
parent 2535db82f4
commit b5594c8fce

View file

@ -26,8 +26,10 @@ in
extraConfig = ''
" Move these paths to the end of $PATH to prevent triggering the XCode CLI popup
let xcode_paths = ":/usr/bin:/bin:/usr/sbin:/sbin"
let $PATH = substitute($PATH, xcode_paths, "", "") . xcode_paths
let xcode_paths = [':/usr/local/bin:', ':/usr/bin:', ':/usr/sbin:', ':/bin:', ':/sbin:']
for xcode_path in xcode_paths
let $PATH = substitute($PATH, xcode_path, ":", "") . substitute(xcode_path, ":$", "", "")
endfor
lua require('impatient')
lua require('nix_init')