mirror of
https://github.com/dnlbauer/dotfiles.git
synced 2026-09-10 21:45:30 +00:00
automatically install zgen
This commit is contained in:
13
install.sh
13
install.sh
@@ -1,18 +1,17 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Make ZSH the default shell environment
|
# Make ZSH the default shell environment
|
||||||
if [ `cat /etc/passwd | grep $USER | awk -F ':' '{print $7}'` != "/bin/zsh" ]; then
|
if [ `cat /etc/passwd | grep $USER | awk -F ':' '{print $7}'` != "/usr/bin/zsh" ]; then
|
||||||
echo "Changing shell to zsh"
|
echo "Changing shell to zsh"
|
||||||
chsh -s $(which zsh)
|
chsh -s $(which zsh)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# ZIM Installation
|
# zgen Installation
|
||||||
if [ ! -d "$HOME/.zim" ]; then
|
if [ ! -d "$HOME/.zgen" ]; then
|
||||||
echo "Installing ZIM"
|
echo "Installing zgen"
|
||||||
git clone --recursive --depth=1 https://github.com/zimfw/zimfw.git \
|
git clone --depth=1 https://github.com/tarjoilija/zgen.git "${HOME}/.zgen"
|
||||||
${ZDOTDIR:-${HOME}}/.zim
|
|
||||||
else
|
else
|
||||||
echo "ZIM already exists."
|
echo "zgen already exists."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Powerlevel9k Theme
|
# Powerlevel9k Theme
|
||||||
|
|||||||
Reference in New Issue
Block a user