docs: ReadMe lint

This commit is contained in:
Michel 2024-02-12 14:36:40 +01:00
parent e02f287489
commit a49a150238
1 changed files with 28 additions and 23 deletions

View File

@ -1,11 +1,12 @@
<!-- markdownlint-disable line-length no-inline-html no-duplicate-heading -->
# Bare Git Repository
- https://www.atlassian.com/git/tutorials/dotfiles
- <https://www.atlassian.com/git/tutorials/dotfiles>
- StreakyCobra
## Starting from scratch
## Starting from scratch
```
```sh
git init --bare $HOME/.dotfiles
alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles --work-tree=$HOME'
dotfiles config --local status.showUntrackedFiles no
@ -19,7 +20,7 @@ files which would be overwritten by Git.
The “BKDIR” part is a rough shortcut to move all the offending files
automatically to a backup folder:
```
```sh
git clone --bare <git-repo-url> $HOME/.dotfiles
alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles --work-tree=$HOME'
@ -35,7 +36,7 @@ dotfiles checkout
## Install into `/etc/skel`
```
```sh
sudo mkdir -p /etc/skel/.dotfiles
sudo chown $(whoami) /etc/skel
@ -53,13 +54,13 @@ skelfiles checkout
## Other Tools
```
```sh
lazygit --git-dir=$HOME/.dotfiles --work-tree=$HOME
```
# Install remotes as subtree
- https://www.atlassian.com/git/tutorials/git-subtree
- <https://www.atlassian.com/git/tutorials/git-subtree>
- Create an alias for remote repository
- `dotfiles remote add <remote-name> <URL>`
- Import remote as a single commit (squashed)
@ -75,12 +76,11 @@ lazygit --git-dir=$HOME/.dotfiles --work-tree=$HOME
From [stackoverflow](https://stackoverflow.com/questions/28484186/apply-github-commit-pull-request-as-a-patch).
```
```sh
wget https://github.com/jesseduffield/lazygit/pull/2604.patch
git apply --stat --apply 2604.patch
```
## Fonts
- [How to install and manage fonts on Linux](https://linuxconfig.org/how-to-install-and-manage-fonts-on-linux)
@ -94,17 +94,16 @@ git apply --stat --apply 2604.patch
- [Download](https://github.com/ryanoasis/nerd-fonts/tags)
- NerdFontsSymbolsOnly.tar.xz
- [Cheat Sheet](https://www.nerdfonts.com/cheat-sheet)
- https://raw.githubusercontent.com/ryanoasis/nerd-fonts/master/bin/scripts/test-fonts.sh
- <https://raw.githubusercontent.com/ryanoasis/nerd-fonts/master/bin/scripts/test-fonts.sh>
## kitty
- https://sw.kovidgoyal.net/kitty/binary/
- <https://sw.kovidgoyal.net/kitty/binary/>
- Install `JetBrains Mono` (without NF) & `NerdFontsSymbolsOnly` fonts.
- Note: outside of kitty, it may be interesting to also install
_JetBrains Mono_ *with* _NF_.
_JetBrains Mono_ **with** _NF_.
```
```sh
sudo apt-get install kitty-terminfo
(kitty --version && curl https://sw.kovidgoyal.net/kitty/changelog/ | html2text) | less
sh ~/.config/kitty/installer.sh
@ -114,7 +113,6 @@ sh ~/.config/kitty/installer.sh
Kitty prepends its _bin_ folder to the path.
So it is more coherent/simpler to copy this behaviour into Zsh.
## lazygit
### Dependencies
@ -123,7 +121,7 @@ So it is more coherent/simpler to copy this behaviour into Zsh.
### Binary Releases
```
```sh
URI=https://api.github.com/repos/jesseduffield/lazygit
LOCATION=$(curl -s $URI/releases/latest \
| grep "browser_download_url.*Linux_x86_64" \
@ -137,13 +135,20 @@ tar xf *.tar.gz(om[1])
### Go
```
```sh
go install github.com/jesseduffield/lazygit@latest
```
Problem: Commit ID, build date and version aren't set.
```sh
$ lazygit --version
commit=, build date=, build source=unknown, version=unversioned, os=linux, arch=amd64, git version=2.43.0
```
### Manual
```
```sh
mkdir -p $HOME/dev_3rd/golang
cd $HOME/dev_3rd/golang
@ -162,7 +167,7 @@ go install
### Binary Nightly Release
```
```sh
mkdir -p $HOME/.local/bin
cd $HOME/.local/bin
@ -186,10 +191,10 @@ vi --version
- bsdtar (`libarchive-tools`) supports _Zstd_
- [fuse-archive](https://github.com/google/fuse-archive)
- `atool`: last release is from 2012
- https://github.com/solsticedhiver/atool2
- https://github.com/wummel/patool
- <https://github.com/solsticedhiver/atool2>
- <https://github.com/wummel/patool>
- Drag&Drop: URI=https://github.com/mwh/dragon
- Drag&Drop: <https://github.com/mwh/dragon>
- Trash:
- `trash-cli` is a much better CLI-only solution!
@ -198,7 +203,7 @@ vi --version
### Source Code of Latest Release
```
```sh
# Download archive & extract files
URI=https://github.com/jarun/nnn
xdg-open $URI/releases/latest