The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description.
- Image from https://www.archlinux.org/
| "Compile Code | |
| map <F5> :call CompileRunGcc()<CR> | |
| func! CompileRunGcc() | |
| exec "w" | |
| if &filetype == 'markdown' | |
| exec "!pandoc -s -o $(basename % .md).pdf % && zathura $(basename % .md).pdf &" | |
| elseif &filetype == 'c' | |
| exec "!gcc -pthread -lm % -o %<" | |
| exec "!time ./%<" | |
| elseif &filetype == 'tex' |
| #!/bin/bash | |
| [ ! "$(docker ps -a | grep tts-server)" ] && docker run -d --name tts-server --rm -p 5002:5002 --gpus all --entrypoint python3 -v /home/user/.local/share/tts/:/root/.local/share/tts/ ghcr.io/coqui-ai/tts TTS/server/server.py --list_models tts --model_name tts_models/en/vctk/vits --use_cuda true | |
| text=$(xclip -o) | |
| curl --get --data-urlencode "text=${text}" --data-urlencode "speaker_id=p364" http://localhost:5002/api/tts --output ~/tmp/sound.wav | |
| mpv ~/tmp/sound.wav |
| #!/bin/bash | |
| name="copoer" | |
| cntx="users" | |
| page=1 | |
| echo $name | |
| echo $cntx | |
| START=1 | |
| END=3 |
The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description.