docs: Install Read Me

This commit is contained in:
Michel 2024-04-16 10:07:34 +02:00
parent db59542fe7
commit 59928f6906
2 changed files with 67 additions and 24 deletions

View File

@ -77,15 +77,19 @@ lazygit --git-dir=$HOME/.dotfiles --work-tree=$HOME
# Every-day Tools
## Recommended Installation Order
Recommended installation order:
- debian apt
- versions_check: bat, lsd
- fonts
- kitty
- lazygit
- nnn
- neovim
- System Config
- [Debian packages](#debian)
- Qubes proxy scripts (TODO)
- dotfiles (see above)
- [ASDF](#asdf) & plugins
- Newer Debian packages: `bin/versions_check`
- [Fonts](#fonts)
- [kitty](#kitty) — `st`?
- [lazygit](#lazygit)
- [nnn](#nnn)
- [neovim](#neovim)
## Generic Tips
@ -102,17 +106,45 @@ wget https://github.com/jesseduffield/lazygit/pull/2604.patch
git apply --stat --apply 2604.patch
```
## Debian Packages
### Qubes Internet Access
- In _Basic_, connect to `sys-firewall`;
- In _Firewall rules_:
- check _Limit outgoing connections_;
- check _Allow full access for 25 minutes_.
## System Config
- [SysRq](https://www.kicksecure.com/wiki/SysRq)
## Debian Packages {#debian}
```sh
apt install curl fd-find fzf grc ripgrep wget xdg-utils
apt install curl fd-find fzf git grc ripgrep wget xdg-utils
dpkg-divert --divert /usr/bin/fd --rename /usr/bin/fdfind
dpkg-divert --divert /usr/share/man/man1/fd.1.gz --rename /usr/share/man/man1/fdfind.1.gz
dpkg-divert --divert /usr/share/zsh/vendor-completions/_rg --rename /usr/share/zsh/vendor-completions/rg.zsh
```
## Fonts
## ASDF & main plugins {#asdf}
`.zshrc` will install `asdf`.
Make sure you have the required [system dependencies](https://github.com/pyenv/pyenv/wiki#suggested-build-environment)
before installing/compiling Python.
```sh
sudo apt install --no-install-recommends XXX
asdf plugin add direnv
asdf plugin add python
cd ~/bin
asdf current
asdf install
```
## Fonts {#fonts}
- [JetBrains Mono](https://www.jetbrains.com/lp/mono/)
- Install the files **without** “NL” (No Ligatures) in their names
@ -149,7 +181,7 @@ sudo mv folder /opt/fonts
fc-cache -fv /opt/fonts
```
## kitty
## kitty {#kitty}
- <https://sw.kovidgoyal.net/kitty/binary/>
@ -193,13 +225,18 @@ sudo update-alternatives \
Kitty prepends its _bin_ folder to the path.
So it is more coherent/simpler to copy this behaviour into Zsh.
## lazygit
## lazygit {#lazygit}
### Dependencies
- git-delta
- go language (when compiling)
```sh
# debian testing & unstable:
apt install git-delta
```
### From Source
```sh
@ -216,6 +253,9 @@ go install
### Binary Releases
```sh
mkdir -p /opt/lazygit/bin
cd /opt/lazygit/bin
URI=https://api.github.com/repos/jesseduffield/lazygit
LOCATION=$(curl -s $URI/releases/latest \
| grep "browser_download_url.*Linux_x86_64" \
@ -232,6 +272,8 @@ tar xf *.tar.gz(om[1])
```sh
go install github.com/jesseduffield/lazygit@latest
export GOPATH=/opt/go && sudo mkdir -p $GOPATH
sudo -E go install github.com/jesseduffield/lazygit@latest
```
Problem: Commit ID, build date and version aren't set.
@ -241,7 +283,7 @@ $ lazygit --version
commit=, build date=, build source=unknown, version=unversioned, os=linux, arch=amd64, git version=2.43.0
```
## neovim
## neovim {#neovim}
### Dependencies
@ -274,7 +316,7 @@ vi --version
flatpak install flathub io.neovim.nvim
```
## nnn — n³
## nnn — n³ {#nnn}
### Dependencies

View File

@ -33,6 +33,7 @@ function debian
last_version=$(lastversion ${repository} --newer-than ${current_version})
if [[ $? -eq 0 ]]; then
echo -n ${repository}/releases
echo "${fg[cyan]}"
lastversion ${repository} --filter="${machine}\.deb" --assets