Skip to content

Commit

Permalink
[update]add separate
Browse files Browse the repository at this point in the history
  • Loading branch information
kenkenpa198 committed Mar 8, 2024
1 parent 151d2b4 commit 495c6b6
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions setup/ubuntu/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,14 @@ function backup_origin_files {
cp ~/.bashrc ~/.bashrc.org
}

# 区切りを出力
# [シェル内でセパレータを引く #Zsh - Qiita](https://qiita.com/Linda_pp/items/674b8582772747ede9c3)
function separate {
for i in $(seq 1 $COLUMNS); do
echo -n '/'
done
}

# 完了メッセージを表示
function print_finished {
set +x
Expand All @@ -74,27 +82,37 @@ function print_finished {
function main {
# XDG Base Directory Specification
export_xdg
separate

# git clone dotfiles
clone_dotfiles
separate

# ディレクトリを作成
make_dir
separate

# 初期ファイルをバックアップ
backup_origin_files
separate

# アプリケーションのインストール
bash "${HOME}/dotfiles/setup/ubuntu/install-git.sh"
separate
bash "${HOME}/dotfiles/setup/ubuntu/install-apt-packages.sh"
separate
bash "${HOME}/dotfiles/setup/ubuntu/install-sheldon.sh"
separate
bash "${HOME}/dotfiles/setup/ubuntu/install-my-scripts.sh"
separate

# シンボリックリンクを作成
bash "${HOME}/dotfiles/setup/ubuntu/link.sh"
separate

# zsh をデフォルトシェルへ設定
sudo chsh "$USER" -s "$(which zsh)"
separate

# 完了メッセージを出力
print_finished
Expand Down

0 comments on commit 495c6b6

Please sign in to comment.