+
Skip to content

k5-mot/dotfiles

Repository files navigation

⚙️ dotfiles

Installation

  • Windows
winget install Microsoft.PowerShell Git.Git twpayne.chezmoi
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
chezmoi init --apply "git@github.com:k5-mot/dotfiles.git"
chezmoi state delete-bucket --bucket=entryState
chezmoi update
  • Linux
wsl --install Ubuntu
sh -c "$(curl -fsLS get.chezmoi.io)" -- -b $HOME/.local/bin

cp -rf /mnt/c/Users/<username>/.ssh/ ~/.ssh/
chmod 600 ~/.ssh/*

ln -s  /mnt/c/Users/<username>/.aws/                  ~/.aws/
ln -s  /mnt/c/Users/<username>/.azure/                ~/.azure/
ln -s  /mnt/c/Users/<username>/AppData/Roaming/gcloud ~/.config/gcloud

$HOME/.local/bin/chezmoi init --apply "git@github.com:k5-mot/dotfiles.git"
$HOME/.local/bin/chezmoi init --apply "https://github.com/k5-mot/dotfiles.git"

chsh -s $(which zsh)

chezmoi state delete-bucket --bucket=entryState
chezmoi update

### Dist-Clean
rm -rfv ~/.bash_profile ~/.bashrc ~/.cache ~/.config ~/.emacs.d ~/.gitconfig ~/.minikube ~/.npm ~/.sudo_as_admin_successful ~/.vim ~/.vimrc ~/.zcompdump ~/.zshenv ~/.zshrc ~/.local/{bin,script,state} ~/.local/share/{gem,mise,nvim,tmux,zinit}
export PROMPT="%F{green}%n%f%F{magenta}@%f%F{blue}%m%f%F{magenta}:%f%F{cyan}%~%f
%F{green}$%f "
$HOME/.local/bin/chezmoi init --apply k5-mot

📑 Note

 wsl --install Ubuntu
ダウンロードしています: Ubuntu
インストールしています: Ubuntu
ディストリビューションが正常にインストールされました。'wsl.exe -d Ubuntu' を使用して起動できます
Ubuntu を起動しています...
Provisioning the new WSL instance Ubuntu
This might take a while...
Create a default Unix user account: user
New password:
Retype new password:
passwd: password updated successfully
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

user@host:/mnt/c/Users/user$

proxy

export PROXY_USER="<ID>"
export PROXY_PASS="<PASSWORD>"
export PROXY_HOST="<HOST>"
export PROXY_PORT="<PORT>"
export HTTP_PROXY="http://${PROXY_USER}:${PROXY_PASS}@${PROXY_HOST}:${PROXY_PORT}"
export HTTPS_PROXY="${HTTP_PROXY}"
export http_proxy="${HTTP_PROXY}"
export https_proxy="${HTTP_PROXY}"

👥 Author

🛡️ License

Copyright (c) 2020-2022 k5-mot All Rights Reserved.

k5-mot/dotfiles is under MIT license.

About

Dotfiles managed by chezmoi

Resources

Stars

Watchers

Forks

Packages

No packages published
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载