Personal dotfiles.
# "~/.customrc.pre.sh" is a custom shell script that runs before most other commands
# There is also a custom shell script "~/.customrc.post.sh" that runs after most other commands
cat <<- EOF >> ~/.customrc.pre.sh
# (Optional) Set the value of 'DOTFILES_INSTALL_EXTRA_BINS' to non-empty to install extra binaries,
# see below for more details.
export DOTFILES_INSTALL_EXTRA_BINS=1
# (Optional) Set the value of 'DOTFILES_INSTALL_ARKADE_BINS' to non-empty to install all binaries
# that can be installed via arkade, see below for more details.
export DOTFILES_INSTALL_ARKADE_BINS=1
# Set the value of 'GIT_USERNAME' to set the default git user name.
export GIT_USERNAME=x
# Set the value of 'GIT_USEREMAIL' to set the default git user email.
export [email protected]
EOF
export HTTP_PROXY=http://localhost:7890
export HTTPS_PROXY=http://localhost:7890
sh -c "$(curl kibazen.cn/install.sh)"
You can set git config for GitHub via command
git config --file ~/.gitconfig-github user.name xxx
.You can set git config for GitLab via command
git config --file ~/.gitconfig-gitlab user.name xxx
.
# Install WinGet on Windows Sandbox
# https://learn.microsoft.com/en-us/windows/package-manager/winget/#install-winget-on-windows-sandbox
winget install --id twpayne.chezmoi --accept-source-agreements
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser -Force
$env:HTTP_PROXY = 'http://localhost:7890'
$env:HTTPS_PROXY = 'http://localhost:7890'
chezmoi init --apply kibaamor
You can set git config for GitHub via command
git config --file $env:USERPROFILE/.gitconfig-github user.name xxx
.You can set git config for GitLab via command
git config --file $env:USERPROFILE/.gitconfig-gitlab user.name xxx
.
- delta
- bat
- fd
- fzf
- direnv
- rg
- lsd
- duf
- age, age-keygen
- tldr
- jq
- yq
- gdu
- nali
- tproxy
- gping
- doggo
- nexttrace
- ctop
- kubecolor
- arkade
Only install those binaries if the value of the environment variable 'DOTFILES_INSTALL_EXTRA_BINS' is non-empty.
You can set the value of the environment variable 'DOTFILES_INSTALL_ARKADE_BINS' to empty, so that chezmoi installs these bins instead of arkade.
# (Optional) Set the value of 'TMPDIR' if the directory '/tmp' is mounted with 'noexec'.
export TMPDIR=~/.tmp