-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·50 lines (22 loc) · 1.27 KB
/
setup.sh
File metadata and controls
executable file
·50 lines (22 loc) · 1.27 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
#!/usr/bin/env bash
set -e
ZSH="$HOME/.oh-my-zsh"
#sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
git clone https://github.com/jackm43/dotfiles.git "$HOME/dotfiles"
#mkdir -p "$ZSH/custom"
cp "$HOME/dotfiles/.oh-my-zsh-custom/aliases.zsh" "$ZSH/custom/aliases.zsh"
cp "$HOME/dotfiles/.oh-my-zsh-custom/exports.zsh" "$ZSH/custom/exports.zsh"
cp "$HOME/dotfiles/.oh-my-zsh-custom/functions.zsh" "$ZSH/custom/functions.zsh"
cp "$HOME/dotfiles/.gitconfig" "$HOME/.gitconfig"
ln -sf "$HOME/dotfiles/.oh-my-zsh-custom/aliases.zsh" "$ZSH/custom/aliases.zsh"
ln -sf "$HOME/dotfiles/.oh-my-zsh-custom/exports.zsh" "$ZSH/custom/exports.zsh"
ln -sf "$HOME/dotfiles/.oh-my-zsh-custom/functions.zsh" "$ZSH/custom/functions.zsh"
ln -sf "$HOME/dotfiles/.gitconfig" "$HOME/.gitconfig"
mkdir -p "$HOME/.config"
ln -sf "$HOME/dotfiles/.config/starship.toml" "$HOME/.config/starship.toml"
cp "$HOME/dotfiles/.zshrc" "$HOME/.zshrc"
ln -sf "$HOME/dotfiles/.zshrc" "$HOME/.zshrc"
chsh -s $(which zsh)
git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
exec zsh -l