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 = ''
|
||||
" 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')
|
||||
|
|
Loading…
Reference in a new issue