Compare commits
No commits in common. "40eb9aa808134c8bb474fd75b186c19e074ad9d2" and "f084b19637bdbc4aa71f91b46af83a3539450244" have entirely different histories.
40eb9aa808
...
f084b19637
3
ssh.md
3
ssh.md
|
@ -5,6 +5,3 @@
|
||||||
* `ssh-keygen -lf ~/.ssh/filename`
|
* `ssh-keygen -lf ~/.ssh/filename`
|
||||||
* `ssh-keygen -lf ~/.ssh/filename.pub`
|
* `ssh-keygen -lf ~/.ssh/filename.pub`
|
||||||
|
|
||||||
# Linux
|
|
||||||
|
|
||||||
You might need to run `ssh-add ~/.ssh/id_rsa` after setting up your key.
|
|
||||||
|
|
50
vimrc
50
vimrc
|
@ -1187,17 +1187,11 @@ function! Build(optimized=0, silent=0)
|
||||||
|
|
||||||
if a:optimized == 1
|
if a:optimized == 1
|
||||||
echo "Compiling release build.jai"
|
echo "Compiling release build.jai"
|
||||||
" @note We pass 'release' as a user command arg for the build file
|
let l:cmd .= " -release"
|
||||||
" to parse. -release is a compiler arg and we don't want to use
|
|
||||||
" that. Ideally the build script would ignore that completely.
|
|
||||||
let l:cmd .= " - release"
|
|
||||||
else
|
else
|
||||||
echo "Compiling debug build.jai"
|
echo "Compiling debug build.jai"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" @note We aren't importing the local modules because the build file
|
|
||||||
" should manage that sort of thing for us.
|
|
||||||
|
|
||||||
elseif l:ext == "jai"
|
elseif l:ext == "jai"
|
||||||
let l:is_jai = 1
|
let l:is_jai = 1
|
||||||
let l:cmd = "jai % "
|
let l:cmd = "jai % "
|
||||||
|
@ -1233,30 +1227,30 @@ function! Build(optimized=0, silent=0)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! RunProgram()
|
function! RunProgram()
|
||||||
if filereadable("run")
|
let l:ext = tolower(expand('%:e'))
|
||||||
exec "AsyncRun! -post=call\\ StopRunTask() ./run %"
|
if l:ext == "jai"
|
||||||
else
|
if filereadable(expand('%:p:r') . '.exe')
|
||||||
let l:ext = tolower(expand('%:e'))
|
exec "AsyncRun! " . expand('%:p:r') . ".exe"
|
||||||
if l:ext == "jai"
|
else
|
||||||
if filereadable(expand('%:p:r') . '.exe')
|
if tolower(expand('%:h')) == "modules"
|
||||||
exec "AsyncRun! " . expand('%:p:r') . ".exe"
|
" This is likely a jai module inside a project. Check for an " exe one directory back.
|
||||||
|
let l:files = systemlist('ls ' . expand('%:p:h') . '/../*.exe 2>/dev/null')
|
||||||
else
|
else
|
||||||
if tolower(expand('%:h')) == "modules"
|
let l:files = systemlist('ls ' . expand('%:p:h') . '/*.exe 2>/dev/null')
|
||||||
" This is likely a jai module inside a project. Check for an " exe one directory back.
|
endif
|
||||||
let l:files = systemlist('ls ' . expand('%:p:h') . '/../*.exe 2>/dev/null')
|
|
||||||
else
|
if len(l:files) > 0
|
||||||
let l:files = systemlist('ls ' . expand('%:p:h') . '/*.exe 2>/dev/null')
|
exec "AsyncRun! " . l:files[0]
|
||||||
endif
|
else
|
||||||
|
call PrintError("No exe found. Compile first?")
|
||||||
if len(l:files) > 0
|
|
||||||
exec "AsyncRun! " . l:files[0]
|
|
||||||
else
|
|
||||||
call PrintError("No exe found. Compile first?")
|
|
||||||
endif
|
|
||||||
endif
|
endif
|
||||||
elseif l:ext == "py"
|
|
||||||
exec "AsyncRun! python %"
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
elseif l:ext == "py"
|
||||||
|
exec "AsyncRun! python %"
|
||||||
|
|
||||||
|
else
|
||||||
|
exec "AsyncRun! -post=call\\ StopRunTask() ./run %"
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user