-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·41 lines (34 loc) · 1.36 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
#!/bin/sh
git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"
git clone --recurse-submodules https://github.com/belak/prezto-contrib "${ZDOTDIR:-$HOME}/.zprezto/contrib"
rm -f "${ZDOTDIR:-$HOME}"/.zlogin
rm -f "${ZDOTDIR:-$HOME}"/.zlogout
rm -f "${ZDOTDIR:-$HOME}"/.zprofile
rm -f "${ZDOTDIR:-$HOME}"/.zshenv
ln -s "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/zlogin "${ZDOTDIR:-$HOME}"/.zlogin
ln -s "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/zlogout "${ZDOTDIR:-$HOME}"/.zlogout
ln -s "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/zprofile "${ZDOTDIR:-$HOME}"/.zprofile
ln -s "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/zshenv "${ZDOTDIR:-$HOME}"/.zshenv
mkdir -p "$HOME/.config"
cp .config/starship.toml "$HOME/.config/starship.toml"
mkdir -p "$HOME/Code"
cp -R bin "$HOME/Code/bin"
cp .aliases "$HOME/.aliases"
cp .curlrc "$HOME/.curlrc"
cp .exports "$HOME/.exports"
cp .functions "$HOME/.functions"
cp .gitattributes "$HOME/.gitattributes"
cp .gitconfig "$HOME/.gitconfig"
cp .gitignore_global "$HOME/.gitignore"
cp .hushlogin "$HOME/.hushlogin"
cp .inputrc "$HOME/.inputrc"
cp .nanorc "$HOME/.nanorc"
cp .screenrc "$HOME/.screenrc"
cp .sources "$HOME/.sources"
cp .wgetrc "$HOME/.wgetrc"
cp .zmodules "$HOME/.zmodules"
cp .zpreztorc "$HOME/.zpreztorc"
cp .zshrc "$HOME/.zshrc"
if command -v zsh > /dev/null 2>&1; then
sudo chsh "$(id -un)" --shell "$(which zsh)"
fi