File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 55
66class Setup :
77 def __init__ (self , url : str ):
8- urllib .request .urlretrieve (f"{ url } /nvim-linux-x86_64.appimage" , "nvim.appimage" )
9- os .chmod ("nvim.appimage" , 0o755 )
8+ fname = 'nvim-linux64'
9+ subprocess .run (f'tar -xvf { fname } .tar.gz' , shell = True , check = True )
10+ #urllib.request.urlretrieve(f"{url}/nvim-linux-x86_64.appimage", "nvim.appimage")
11+ #os.chmod("nvim.appimage", 0o755)
1012 bindir = os .path .join (os .getenv ('HOME' ), 'bin' )
1113 os .makedirs (bindir , exist_ok = True )
1214 try :
13- os .symlink (os .path .realpath (" nvim.appimage " ),
15+ os .symlink (os .path .realpath (f" { fname } /bin/ nvim" ),
1416 os .path .join (bindir , "nvim" ))
1517 except FileExistsError :
1618 ...
@@ -24,7 +26,7 @@ def __init__(self, url: str):
2426 subprocess .run (
2527 r'''
2628sudo apt-get update
27- sudo apt-get install libfuse2 gdb lldb python3-lldb-18 cmake file --no-install-recommends
29+ sudo apt-get install libvterm0 libfuse2 gdb lldb python3-lldb-18 cmake file --no-install-recommends
2830sudo apt-get install -y tzdata locales
2931sudo locale-gen en_US.UTF-8
3032sudo localectl set-locale LANG="en_US.UTF-8"
You can’t perform that action at this time.
0 commit comments