-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.sh
52 lines (41 loc) · 1.28 KB
/
init.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
#! /bin/bash
pushd $(dirname $0)
# Install oh-my-zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
mv .zshrc ~/.zshrc
md $ZSH/completions
source ~/.zshrc
# Install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
# Copy Git configurations
cp .gitconfig .gitignore_global ~/
popd
# Install common tools
brew install jq
brew install gh
brew install fzf
brew install tmux
brew install direnv
brew install shfmt
# Rust implementation for 'ls'
brew install exa
# Rust implementation for 'grep'
brew install ripgrep
# Rust implementation for 'find'
brew install fd
# Rust implementation for 'cat'
brew install bat
# Container
brew install lima
# Completions
gh completion -s zsh >$ZSH/completions/_gh
limactl completion zsh >$ZSH/completions/_limactl
lima nerdctl completion zsh >$ZSH/completions/_nerdctl
# Configurations
echo 'eval "$(direnv hook zsh)"' >>~/.zshrc
alias ls='exa -l --git'
alias l='exa -lah --git'
alias find='fd'
alias cat='bat'