Skip to content

Commit

Permalink
expand env vars twice to make sure any nested ones are also evaluated
Browse files Browse the repository at this point in the history
  • Loading branch information
alanhamlett committed Apr 13, 2022
1 parent 92f7029 commit 9cf2f19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/wakatime.vim
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ let s:VERSION = '9.0.1'
" Script Globals
let s:home = ''
if exists('$WAKATIME_HOME')
let s:home = expand('$WAKATIME_HOME')
let s:home = expand(expand('$WAKATIME_HOME'))
else
let s:home = expand("$HOME")
let s:home = expand(expand("$HOME"))
endif
let s:home = substitute(s:home, '\', '/', 'g')
let s:plugin_root_folder = substitute(expand("<sfile>:p:h:h"), '\', '/', 'g')
Expand Down

0 comments on commit 9cf2f19

Please sign in to comment.