-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·73 lines (60 loc) · 1.94 KB
/
install.sh
File metadata and controls
executable file
·73 lines (60 loc) · 1.94 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#!/bin/zsh
if ! command -v brew &> /dev/null; then
echo "Installing homebrew..."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi
if ! brew list | grep antidote > /dev/null 2>&1 ; then
echo "Installing antidote..."
brew install antidote
fi
if ! command -v stow > /dev/null 2>&1; then
echo "Installing stow..."
brew install stow
fi
if ! command -v starship > /dev/null 2>&1; then
echo "Installing starship..."
curl -sS https://starship.rs/install.sh | sh
fi
if ! command -v mise > /dev/null 2>&1; then
echo "Installing mise..."
brew install zstd
curl https://mise.run | sh
fi
if ! command -v mise > /dev/null 2>&1; then
echo "Installing ghostty..."
brew install ghostty
fi
if ! command -v nvim > /dev/null 2>&1; then
echo "Installing nvim..."
brew install nvim
fi
if ! command -v mise > /dev/null 2>&1; then
echo "Installing fzf..."
brew install fzf
fi
if ! command -v mise > /dev/null 2>&1; then
echo "Installing zoxide..."
brew install zoxide
fi
if ! command -v delta > /dev/null 2>&1; then
echo "Installing git-delta..."
brew install git-delta
fi
stow .
# check gitconfig is setup
if [ -z "$(git config --global user.name)" ] || [ -z "$(git config --global user.email)" ]; then
echo "Git configuration is incomplete. Please set up your identity."
# read -p "Enter your name: " git_name
# read -p "Enter your email: " git_email
echo -n "Enter your name: " && read git_name
echo -n "Enter your email: " && read git_email
git config --global user.name "$git_name"
git config --global user.email "$git_email"
fi
if [ -z "$(git config --global core.pager)" ]; then
echo "Setting up the diff pager..."
git config --global core.pager delta
git config --global interactive.diffFilter 'delta --color-only'
git config --global delta.navigate true
git config --global merge.conflictStyle zdiff3
fi