186 lines
3.1 KiB
Markdown
Executable File
186 lines
3.1 KiB
Markdown
Executable File
# Valknar's home · v1.0.0
|
|
|
|
This is a **personal development environment** configuration managed with `arty`.
|
|
|
|
```bash
|
|
curl https://dev.pivoine.art/valknar/home/raw/branch/main/bin/setup -sSf | sh
|
|
```
|
|
|
|
---
|
|
|
|
## Dependencies
|
|
|
|
| Package | Location | Ref |
|
|
|---------|----------|-----|
|
|
| `nvm` | `.nvm` | — |
|
|
| `rbenv` | `.rbenv` | — |
|
|
| `ruby-build` | `.rbenv/plugins/ruby-build` | — |
|
|
| `pyenv` | `.pyenv` | — |
|
|
| `ohmyzsh` | `.oh-my-zsh` | — |
|
|
| `powerlevel10k` | `.zsh/themes/powerlevel10k` | — |
|
|
| `zsh-autocomplete` | `.zsh/plugins/zsh-autocomplete` | — |
|
|
| `zsh-autosuggestions` | `.zsh/plugins/zsh-autosuggestions` | — |
|
|
| `zsh-syntax-highlighting` | `.zsh/plugins/zsh-syntax-highlighting` | — |
|
|
|
|
---
|
|
|
|
## Scripts
|
|
|
|
### `git:config`
|
|
|
|
```sh
|
|
printf 'Name: ' && read name
|
|
printf 'Email: ' && read email
|
|
printf '[user]\n name = %s\n email = %s\n' "$name" "$email" > ~/.gitconfig.local
|
|
echo "Written ~/.gitconfig.local"
|
|
```
|
|
|
|
### `ssh:keygen`
|
|
|
|
```sh
|
|
ssh-keygen -t ed25519 -C "$(git config --global --include user.email)"
|
|
```
|
|
|
|
### `debian:upgrade`
|
|
|
|
```sh
|
|
sudo apt update && sudo apt upgrade -y
|
|
```
|
|
|
|
### `debian:setup:contrib`
|
|
|
|
```sh
|
|
sudo sed -i 's/main non-free-firmware/main contrib non-free non-free-firmware/g' /etc/apt/sources.list
|
|
```
|
|
|
|
### `debian:install:base`
|
|
|
|
```sh
|
|
sudo apt install -y build-essential git curl wget unzip zip tar zsh file fzf
|
|
```
|
|
|
|
### `debian:install:libs`
|
|
|
|
```sh
|
|
sudo apt install -y libffi-dev zlib1g-dev libyaml-dev libssl-dev liblzma-dev libbz2-dev libncurses-dev libreadline-dev libsqlite3-dev python3-tk tk-dev zstd
|
|
```
|
|
|
|
### `debian:install:tools`
|
|
|
|
```sh
|
|
sudo apt install -y imagemagick rsvg-convert ffmpeg yt-dlp shellcheck
|
|
```
|
|
|
|
### `docker:install`
|
|
|
|
```sh
|
|
curl -fsSL -o- https://get.docker.com | sudo sh && sudo usermod -aG docker $USER
|
|
```
|
|
|
|
### `rust:install`
|
|
|
|
```sh
|
|
curl https://sh.rustup.rs -sSf | sh -s -- --no-modify-path -y
|
|
```
|
|
|
|
### `rust:install:tools`
|
|
|
|
```sh
|
|
cargo install bat fd-find yazi-build
|
|
```
|
|
|
|
### `rust:update`
|
|
|
|
```sh
|
|
rustup update
|
|
```
|
|
|
|
### `node:install`
|
|
|
|
```sh
|
|
. "$HOME/.nvm/nvm.sh" && nvm install
|
|
```
|
|
|
|
### `node:install:base`
|
|
|
|
```sh
|
|
npm i -g npm pnpm
|
|
```
|
|
|
|
### `ruby:install`
|
|
|
|
```sh
|
|
rbenv install
|
|
```
|
|
|
|
### `ruby:install:base`
|
|
|
|
```sh
|
|
gem install bundler
|
|
```
|
|
|
|
### `python:install`
|
|
|
|
```sh
|
|
pyenv install
|
|
```
|
|
|
|
### `go:install`
|
|
|
|
```sh
|
|
sudo apt install -y golang-go
|
|
```
|
|
|
|
### `go:install:tools`
|
|
|
|
```sh
|
|
CGO_ENABLED=1 go install -tags extended,withdeploy github.com/gohugoio/hugo@latest
|
|
go install github.com/mikefarah/yq/v4@latest
|
|
```
|
|
|
|
### `go:clean`
|
|
|
|
```sh
|
|
go clean -cache && go clean -modcache
|
|
```
|
|
|
|
### `vscode:extensions`
|
|
|
|
```sh
|
|
code --install-extension editorconfig.editorconfig
|
|
```
|
|
|
|
### `micro:install`
|
|
|
|
```sh
|
|
sudo apt install -y micro
|
|
```
|
|
|
|
### `micro:plugins`
|
|
|
|
```sh
|
|
micro -plugin install editorconfig
|
|
```
|
|
|
|
### `bat:build`
|
|
|
|
```sh
|
|
bat cache --build
|
|
```
|
|
|
|
### `fonts:install`
|
|
|
|
```sh
|
|
mkdir -p ~/.local/share/fonts/Meslo
|
|
curl -L https://github.com/ryanoasis/nerd-fonts/releases/latest/download/Meslo.tar.xz | tar --extract --xz --directory ~/.local/share/fonts/Meslo
|
|
fc-cache -fv
|
|
```
|
|
|
|
---
|
|
|
|
## Details
|
|
|
|
- **Author**: valknar@pivoine.art
|
|
- **License**: MIT
|
|
- **URL**: [https://dev.pivoine.art/valknar/home](https://dev.pivoine.art/valknar/home)
|