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