Ningensei848 / dotfiles

DDD: Dotfiles Driven Development

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

らくしたっていいじゃない、にんげんだもの

.dotfiles をリポジトリとして chezmoi で管理する

使い方:how to use

chezmoi を入手して、dotfiles リポジトリから必要なものを展開する

export GITHUB_USERNAME="Ningensei848" && \
export ZSH_CUSTOM="${HOME}/.zsh" && \
export PATH="${HOME}/bin:${PATH}" && \
sh -c "$(wget -qO- get.chezmoi.io)" -- -b $HOME/bin && \
echo '# chezmoi\npath+=("$HOME/bin")\n' >> ~/.zshrc && \
source ~/.zshrc && which chezmoi && chezmoi --version && \
echo $ZSH_CUSTOM && mkdir -p $ZSH_CUSTOM/plugins/chezmoi && \
chezmoi completion zsh --output=$ZSH_CUSTOM/plugins/chezmoi/_chezmoi && \
chezmoi init --apply $GITHUB_USERNAME

zsh

Ubuntu の場合:

sudo apt-get -y update && \
sudo apt-get -y upgrade && \
sudo apt-get -y install zsh && \
zsh --version && chsh -s $(which zsh) && \
echo $SHELL && $SHELL --version

管理したい

  • rye
  • volta
  • rustup (rust+cargo)

rye

N/A

volta

N/A

rustup

How to install:

curl https://sh.rustup.rs -sSf | sh

zsh

$HOME/.zshrc は別の場所に動かせないから、設定ファイルを纏めるための .zsh/ を別途つくることにする (.zshrc 等の動かせない基本ファイルからは .zsh/ の設定ファイルを読みに行かせる)

sheldon

pre-requisitory: cargo

# install GCC
sudo apt update && \
sudo apt install pkg-config libssl-dev build-essential && \
cargo install sheldon

Starship

cargo install starship --locked

Cmake がない!と怒られたら:

sudo apt -y update && \
sudo apt -y install build-essential && \
echo "cmake には curl, zlib が必要" && \
sudo apt -y install zlib1g-dev libcurl4-gnutls-dev && \
cd /tmp && \
git clone https://github.com/Kitware/CMake.git && \
cd CMake && \
./configure --system-curl --system-zlib && \
make && \
sudo make install

cf. https://www.kkaneko.jp/tools/ubuntu/cmake_buildout.html

Author

Twitter is what's happening in the world and what people are talking about right now.

License

This software is released under the MIT License.

TODO:

  • CI/CD の導入
    • 異なる OS 間での導入スクリプトの作成
  • zsh のカスタマイズ(with Oh My Zsh)

About

DDD: Dotfiles Driven Development

License:MIT License


Languages

Language:Shell 87.7%Language:PowerShell 12.3%