-
Notifications
You must be signed in to change notification settings - Fork 0
/
install_4_zsh.sh
56 lines (41 loc) · 1.41 KB
/
install_4_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 -xev
# Zsh
sudo dnf -y install zsh
sudo dnf -y install util-linux-user
# zsh default shell
# sudo chsh -s /bin/zsh marc ## replaced by the command below
sudo chsh -s $(which zsh) $USER
cd $HOME
if [ -e "$HOME"/.zshenv ]
then rm "$HOME"/.zshenv
fi
if [ ! -e "$HOME"/.cache/zsh/history ]
then
mkdir -p "$HOME"/.cache/zsh || exit
touch "$HOME"/.cache/zsh/history
fi
# Download .zshenv
cd "$HOME" || exit
wget https://raw.githubusercontent.com/pardub/dotfiles_test/main/dotfiles/.zshenv
# Download .zshrc
cd "$HOME"/.config/zsh || exit
wget https://raw.githubusercontent.com/pardub/dotfiles_test/main/dotfiles/.zshrc
# Download .aliases
cd "$HOME"/.config/zsh || exit
wget https://raw.githubusercontent.com/pardub/dotfiles_test/main/dotfiles/.aliases
# Download zsh-functions
cd "$HOME"/.config/zsh || exit
wget https://raw.githubusercontent.com/pardub/dotfiles_test/main/dotfiles/zsh-functions
# Download init.vim
cd "$HOME"/.config/nvim || exit
wget https://raw.githubusercontent.com/pardub/dotfiles_test/main/dotfiles/init.vim
#sudo reboot
############## script 3 ##############
# Install pluging zsh-syntax-highlighting
#mkdir -p "$ZDOTDIR/plugins" || exit
#cd "$ZDOTDIR/plugins" || exit
#sudo git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
# Install pluging zsh-autosuggestions
#cd "$ZDOTDIR/plugins" || exit
#sudo git clone https://github.com/zsh-users/zsh-autosuggestions.git
#sudo reboot