-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·84 lines (68 loc) · 1.39 KB
/
install.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#!/usr/bin/env zsh
# Install all needed dependencies for the dotfiles
if [ ! `command -v brew` ]; then
echo "Homebrew is required to run 'hariprasadraja/dotfiles' .... installing `homebrew`"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
return 0
fi
# if type brew &>/dev/null;then
# FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}"
# fi
# brew uninstall delta - before running this.
dependencies=(
'coreutils'
'nodejs'
'git'
'most'
'bat'
'the_silver_searcher'
'tag-ag'
'ruby'
'go'
'python3'
'desk'
'micro'
'zinit'
'fzf'
'fd'
'wget'
'lsd'
'git-delta'
'direnv'
'docker'
'docker-completion'
'docker-compose'
'gojq'
'ctags'
'git-extras'
'git-cal'
'speedtest-cli'
'make'
'zsh'
'zsync'
'zinit'
'golangci-lint'
'fd'
'lesspipe'
'csvkit'
'chafa'
'exiftool'
'xsv'
'tldr'
)
brew tap aykamko/tag-ag
brew uninstall delta
brew install --overwrite $dependencies
brew upgrade
zinit self-update
actual_zshrc=$(cat ~/.zshrc)
if [[ "$actual_zshrc" = *dotfiles/zshrc.zsh* ]]; then
echo "dofitles arleady sourced from ~/.zshrc"
return 0
fi
zshrc_source='eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
if [ -f ~/dotfiles/zshrc.zsh ]; then
source ~/dotfiles/zshrc.zsh
fi'
echo "\n Adding dotfiles/zshrc to your ~/.zshrc \n $zshrc_source"
echo $zshrc_source >> ~/.zshrc