Skip to content

kibaamor/dotfiles

Repository files navigation

dotfiles

Personal dotfiles.

Install

Linux

# Set the default Git user name and email.
export GIT_USERNAME=x
export [email protected]
# (Optional) Install extra binaries.
export DOTFILES_INSTALL_EXTRA_BINS=1
# (Optional) Install binaries through arkade.
export DOTFILES_INSTALL_ARKADE_BINS=1
# (Optional) Use the GitHub CDN proxy in China.
export DOTFILES_USE_CDN=1
# (Optional) Set a proxy; replace this URL with your proxy address.
export HTTP_PROXY=http://localhost:7890
export HTTPS_PROXY=http://localhost:7890
export default_proxy=http://localhost:7890
# (Optional) Set the GitHub proxy.
git config --global url."https://cdn.gh-proxy.org/https://github.com/".insteadOf "https://github.com/"
git config --file ~/.gitconfig-proxy url."https://cdn.gh-proxy.org/https://github.com/".insteadOf "https://github.com/"

# Install dotfiles
sh -c "$(curl kibazen.cn/dotfiles.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.

Windows

# Install WinGet on Windows Sandbox
# https://learn.microsoft.com/en-us/windows/package-manager/winget/#install-winget-on-windows-sandbox

# Install chezmoi via WinGet
winget install --id twpayne.chezmoi --accept-source-agreements

# Set the default Git user name and email.
$env:GIT_USERNAME = "x"
$env:GIT_USEREMAIL = "[email protected]"
# (Optional) Install extra binaries.
$env:DOTFILES_INSTALL_EXTRA_BINS = "1"
# (Optional) Install binaries through arkade.
$env:DOTFILES_INSTALL_ARKADE_BINS = "1"
# (Optional) Use the GitHub CDN proxy in China.
$env:DOTFILES_USE_CDN = "1"
# (Optional) Set a proxy; replace this URL with your proxy address.
$env:HTTP_PROXY = "http://localhost:7890"
$env:HTTPS_PROXY = "http://localhost:7890"
$env:default_proxy = "http://localhost:7890"
# (Optional) Set the GitHub proxy.
git config --global url."https://cdn.gh-proxy.org/https://github.com/".insteadOf "https://github.com/"
git config --file ~/.gitconfig-proxy url."https://cdn.gh-proxy.org/https://github.com/".insteadOf "https://github.com/"

# Set the execution policy to RemoteSigned for the current user, so that the dotfiles setup scripts can be executed.
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser -Force

# Install dotfiles
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.

Installed Binaries

Default Installed Binaries

  1. delta
  2. bat
  3. fd
  4. fzf
  5. direnv
  6. rg
  7. lsd
  8. duf
  9. age, age-keygen
  10. tldr
  11. jq
  12. yq
  13. gdu
  14. nali
  15. tproxy
  16. gping
  17. doggo
  18. nexttrace
  19. ctop
  20. kubecolor
  21. arkade
  22. upx
  23. ShellCheck (Linux/macOS)
  24. ipstream

Extra Binaries

These binaries are installed only when DOTFILES_INSTALL_EXTRA_BINS is non-empty.

  1. kubeshark
  2. kubefwd

Binaries Installed via Arkade

These binaries are installed through arkade only when DOTFILES_INSTALL_ARKADE_BINS is non-empty.

  1. mkcert
  2. dive
  3. lazydocker
  4. minikube
  5. kind
  6. kubectx, kubens
  7. k9s
  8. helm

Troubleshooting

chezmoi: fork/exec /tmp/XXXXXXXXXX.XX: permission denied

# (Optional) Set `TMPDIR` if `/tmp` is mounted with `noexec`.
export TMPDIR=~/.tmp

About

Personal dotfiles.

Topics

Resources

License

Stars

Watchers

Forks

Contributors