Skip to content

kibaamor/dotfiles

Repository files navigation

dotfiles

Personal dotfiles.

Install

Linux

# "~/.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.

Windows

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

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

Extra Binaries

Only install those binaries if the value of the environment variable 'DOTFILES_INSTALL_EXTRA_BINS' is non-empty.

  1. kubeshark
  2. kubefwd

Binaries Can Be Installed Via Arkade

You can set the value of the environment variable 'DOTFILES_INSTALL_ARKADE_BINS' to empty, so that chezmoi installs these bins instead of arkade.

  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 the value of 'TMPDIR' if the directory '/tmp' is mounted with 'noexec'.
export TMPDIR=~/.tmp

About

Personal dotfiles.

Topics

Resources

License

Stars

Watchers

Forks