Oh-my-zsh

Oh-my-zsh

fetch150zy

使用 oh-my-zsh 美化 manjaro 终端,搭配 powerlevel10k 主题

1.setup zsh

1
2
$ sudo pacman -S zsh
$ zsh

2.install oh-my-zsh

1
$ sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

3.install powerlevel10k

1
$ git clone https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k

4.install plugins

1
2
$ git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
$ git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

5.install lsd

1
$ sudo pacman -S lsd

6.configuration file

1
2
3
4
5
6
7
8
9
10
11
$ vim ~/.zshrc
ZSH_THEME="powerlevel10k/powerlevel10k"
plugins=( git zsh-syntax-highlighting zsh-autosuggestions )
source ~/.zshrc
vim ~/.bashrc
alias ls='lsd'
alias ll='lsd -l'
alias la='lsd -a'
alias lla='lsd -la'
alias lt='lsd --tree'
$ source ~/.bashrc