mint使用

Linux mint 使用

zsh

安装

1
sudo apt-get install zsh

设置为默认 shell

1
chsh -s /bin/zsh

oh-my-zsh

安装

1
2
3
4
# via curl
sh -c "$(curl -fsSL https://gitee.com/shmhlsy/oh-my-zsh-install.sh/raw/master/install.sh)"
# via wget
sh -c "$(wget -O- https://gitee.com/shmhlsy/oh-my-zsh-install.sh/raw/master/install.sh)"

提示 Insecure completion-dependent directories detected

1
2
chmod 755 /usr/local/share/zsh
chmod 755 /usr/local/share/zsh/site-functions

安装插件

命令自动补全

1
git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions

高亮命令

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

.zshrc

1
2
3
4
5
plugins=(
git
zsh-autosuggestions
zsh-syntax-highlighting
)

Flatpak 换源

1
2
3
4
5
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo 
flatpak remote-add --if-not-exists stju https://mirror.sjtu.edu.cn/flathub/flathub.flatpakrepo
flatpak remotes -d
flatpak remote-set-default sjtu
flatpak remote-ls