nvim: Better way to fix $PATH
This commit is contained in:
parent
2535db82f4
commit
b5594c8fce
1 changed files with 4 additions and 2 deletions
|
@ -26,8 +26,10 @@ in
|
||||||
|
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
" Move these paths to the end of $PATH to prevent triggering the XCode CLI popup
|
" 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 xcode_paths = [':/usr/local/bin:', ':/usr/bin:', ':/usr/sbin:', ':/bin:', ':/sbin:']
|
||||||
let $PATH = substitute($PATH, xcode_paths, "", "") . xcode_paths
|
for xcode_path in xcode_paths
|
||||||
|
let $PATH = substitute($PATH, xcode_path, ":", "") . substitute(xcode_path, ":$", "", "")
|
||||||
|
endfor
|
||||||
|
|
||||||
lua require('impatient')
|
lua require('impatient')
|
||||||
lua require('nix_init')
|
lua require('nix_init')
|
||||||
|
|
Loading…
Reference in a new issue