-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathrecipe_oh-my-zsh.sh
executable file
·57 lines (50 loc) · 1.33 KB
/
recipe_oh-my-zsh.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/bin/bash
#/*
# * This file is part of TangoMan Provisions package.
# *
# * Copyright (c) 2025 "Matthias Morin" <mat@tangoman.io>
# *
# * This source file is subject to the MIT license that is bundled
# * with this source code in the file LICENSE.
# */
#/**
# * recipe oh-my-zsh
# *
# * @author "Matthias Morin" <mat@tangoman.io>
# * @license MIT
# * @link https://ohmyz.sh
# */
CURDIR=$(dirname "$(realpath "${BASH_SOURCE[0]}")")
# shellcheck source=/dev/null
. "${CURDIR}/tools/src/colors/colors.sh"
UPDATE=true
OPTIND=0
while getopts :nh OPTION; do
case "${OPTION}" in
n) UPDATE=false;;
h) echo_warning "$(basename "${0}")";
echo_success 'description:' 2 14; echo_primary 'Install Oh-My-ZSH\n'
echo_success 'usage:' 2 14; echo_primary "$(basename "${0}") -n (no-update) -h (help)\n"
exit 0;;
\?) echo_danger "error: invalid option \"${OPTARG}\"\n"
exit 1;;
esac
done
if [ "${UPDATE}" = true ]; then
./update.sh
./upgrade.sh
fi
#/**
# * Oh my zsh
# */
# 1. install_zsh
./system/install_zsh.sh
# 2. install_fonts
./fonts/install_fonts-powerline.sh
./fonts/install_nerd-fonts.sh
# 3. install_ohmyzsh
./themes/install_ohmyzsh.sh
# 4. install_tangoman-theme
./themes/install_tangoman-theme.sh
# 5. config_zsh NOTE: Script will stop here !
./system/config_zsh.sh