Speriamo di aver fixato il riconosvimento della distro per zsh.
This commit is contained in:
parent
78cf6ae031
commit
3a3ba841f6
12
prepare.sh
12
prepare.sh
@ -8,24 +8,28 @@ if [[ ! -f "$HOME/.zshrc" ]]; then
|
||||
# no first setup done
|
||||
|
||||
# Determining operating system so we can quickly setup basic configuration
|
||||
if uname -a | grep -qi 'debian'; then
|
||||
if grep -qi 'debian' /proc/version; then
|
||||
# Debian
|
||||
sudo apt install -y zsh-autosuggestions zsh-syntax-highlighting
|
||||
ln -sf ${DOTFILES}/zsh/distro/debian.base.zsh ${DOTFILES}/zsh/distro.base.zsh
|
||||
fi
|
||||
if uname -a | grep -qi 'ubuntu'; then
|
||||
if grep -qi 'ubuntu' /proc/version; then
|
||||
# TODO: complete instructions for Ubuntu
|
||||
ln -sf ${DOTFILES}/zsh/distro/ubuntu.base.zsh ${DOTFILES}/zsh/distro.base.zsh
|
||||
fi
|
||||
if uname -a | grep -qi 'manjaro'; then
|
||||
if grep -qi 'manjaro' /proc/version; then
|
||||
# TODO: complete instructions for Manjaro
|
||||
pamac install manjaro-zsh-config
|
||||
ln -sf ${DOTFILES}/zsh/distro/manjaro.base.zsh ${DOTFILES}/zsh/distro.base.zsh
|
||||
fi
|
||||
if uname -a | grep -qi 'archlinux'; then
|
||||
if grep -qi 'archlinux' /proc/version; then
|
||||
pacman -S zsh-autosuggestions zsh-syntax-highlighting
|
||||
ln -sf ${DOTFILES}/zsh/distro/archlinux.base.zsh ${DOTFILES}/zsh/distro.base.zsh
|
||||
fi
|
||||
if grep -qi 'voidlinux' /proc/version; then
|
||||
xbps-install -S zsh
|
||||
ln -sf ${DOTFILES}/zsh/distro/void.base.zsh ${DOTFILES}/zsh/distro.base.zsh
|
||||
fi
|
||||
if [[ -f /etc/redhat-release ]] && grep -qi centos /etc/redhat-release; then
|
||||
# TODO: installation on centos.
|
||||
ln -sf ${DOTFILES}/zsh/distro/centos.base.zsh ${DOTFILES}/zsh/distro.base.zsh
|
||||
|
Loading…
Reference in New Issue
Block a user