Linux开发环境一键部署

警告
本文最后更新于 2021-01-08,文中内容可能已过时。

套件

zsh

 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
## 可以到主页看一下最新的版本号
## https://www.zsh.org/
wget https://sunsite.icm.edu.pl/pub/unix/shells/zsh/zsh-5.8.tar.xz

tar -xvf zsh-5.8.tar.xz
cd zsh-5.8
./configure --prefix=/home/lfang/opt
make -j && make install

## 安装 oh-my-zsh
## sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"
wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh
bash install.sh

## 如果报错,则把 install.sh 里面的 https 换成 git,这是因为 curl 可能不是最新版的
# Cloning Oh My Zsh...
# Cloning into '/home/lfang/.oh-my-zsh'...
# fatal: unable to find remote helper for 'https'
# Error: git clone of oh-my-zsh repo failed

## 安装 antigen
mkdir -p ~/.zsh
curl -L git.io/antigen > ~/.zsh/antigen.zsh

echo "
## 需要找到相应的路径
fpath=(/home/lfang/opt/share/zsh/5.8/functions $fpath)
export FPATH="/home/lfang/opt/share/zsh/5.8/functions:$FPATH"

source ~/.zsh/antigen.zsh

# Bundles from the default repo (robbyrussell's oh-my-zsh).
antigen bundles <<EOBUNDLES
command-not-found
colored-man-pages
magic-enter
heroku
pip
lein
extract
tmux
ssh-agent
zsh-users/zsh-completions
zsh-users/zsh-autosuggestions
hlissner/zsh-autopair
zsh-users/zsh-syntax-highlighting
zsh-users/zsh-history-substring-search # load after zsh-syntax-highlighting
HeroCC/LS_COLORS
rupa/z
djui/alias-tips # Alias reminder when launching a command that is aliased
EOBUNDLES

# Tell Antigen that you're done.
antigen apply
" >> ~/.zshrc

source ~/.zshrc

autojump

相关内容

william 支付宝支付宝
william 微信微信
0%