-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup_linux.sh
executable file
·66 lines (48 loc) · 1.57 KB
/
setup_linux.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
#! /bin/zsh
# ==============================
# change default shell to zsh
# ==============================
chsh -s /bin/zsh
# ==============================
# install command line tools
# ==============================
# sudo apt install tmux
sudo apt install gh
wget https://github.com/xxxserxxx/gotop/releases/download/v4.2.0/gotop_v4.2.0_linux_386.tgz
tar -xvzf ./gotop_v4.2.0_linux_386.tgz
sudo mv ./gotop /usr/local/bin
rm ./gotop_v4.2.0_linux_386.tgz
sudo apt install eza
sudo apt install bat
mkdir -p ~/.local/bin
ln -s /usr/bin/batcat ~/.local/bin/bat
sudo apt install fzf
$(brew --prefix)/opt/fzf/install
curl -sS https://starship.rs/install.sh | sh
sudo apt install tldr
# install zprezto
git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"
setopt EXTENDED_GLOB
for rcfile in "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/^README.md(.N); do
ln -s "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}"
done
sudo apt install neofetch
# ==============================
# github setting
# ==============================
git config --global user.name "toyama"
git config --global user.email "[email protected]"
git config --global core.editor vim
# ==============================
# create symbolic link
# ==============================
ln -s ~/Code/dotfiles/.vimrc ~/.vimrc
ln -s ~/Code/dotfiles/.vim ~/.vim
ln -s ~/Code/dotfiles/.wezterm.lua ~/.wezterm.lua
ln -s ~/Code/dotfiles/.tmux.conf ~/.tmux.conf
ln -s ~/Code/dotfiles/.zshrc ~/.zshrc
# ==============================
# ssh setting
# ==============================
mkdir ~/.ssh
mv ./config ~/.ssh