- Shell 46%
- JavaScript 29.5%
- PowerShell 16.5%
- Just 4.4%
- Lua 3.6%
|
|
||
|---|---|---|
| .forgejo/workflows | ||
| dotfiles | ||
| .chezmoiroot | ||
| README.md | ||
Dotfiles
My dotfiles. Managed with chezmoi.
I have previously used bare git repo with a work tree and my own bootstrap scripts. See the last commit before the switch: 65f7c44de8.
Install
To get a new machine setup, there are a few choices.
Get chezmoi via a package manager and init the repo:
chezmoi init --apply ssh://git@git.hosaka.cc/hosaka/.dotfiles
Use a remote script from chezmoi:
sh -c "$(curl -fsLS get.chezmoi.io)" -- init --apply ssh://git@git.hosaka.cc/hosaka/.dotfiles
Use my remote install script:
curl https://hosaka.cc/sh/dotinstall | sh
Use
Pull the latest changes from this repo and apply them:
dot update
Use dot alias to interact with the dotfiles repo, it is a direct alias to chezmoi.
Mise
A tool for managing development environments and tooling, see mise.jdx.dev.
Mise will be automatically bootstrapped when running chezmoi apply based on the machine configuration.
To view a list of configured tools and install them use (also see mise/config.toml):
mise list
mise install tool # or tool@version
It is worth to add a GitHub Personal Access Token to the environment so Mise will not be throttled when installing multiple tools at the same time, this can be done by placing a .mise.toml or .mise.local.toml in $HOME:
[env]
GITHUB_TOKEN = "github_pat_"
Some of the tools which can be installed with Mise are described below.
Atuin
Replaces shell history with a searchable database, see docs.atuin.sh. Install with mise install atuin.
Shell history can be synced between different machines via a self hosted server (see .config/atuin/config.toml).
To setup a new machine (omit the password flag to enter it via a prompt):
atuin login -u <USERNAME> -p <PASSWORD> -k <KEY>
The encryption key can be obtained with atuin key on an existing machine.
Bob
A version manager for Neovim. Install with mise install bob, To use/install a version:
bob use nightly
To update an existing version:
bob update nightly