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
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)
N/A
N/A
How to install:
curl https://sh.rustup.rs -sSf | sh
$HOME/.zshrc
は別の場所に動かせないから、設定ファイルを纏めるための .zsh/
を別途つくることにする
(.zshrc
等の動かせない基本ファイルからは .zsh/
の設定ファイルを読みに行かせる)
pre-requisitory: cargo
# install GCC
sudo apt update && \
sudo apt install pkg-config libssl-dev build-essential && \
cargo install sheldon
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
This software is released under the MIT License.
- CI/CD の導入
- 異なる OS 間での導入スクリプトの作成
- zsh のカスタマイズ(with
Oh My Zsh
)