Files
dotfiles/install.sh
Daniel Bauer 15df14d183 no zim
2019-03-27 11:37:55 +01:00

60 lines
1.6 KiB
Bash
Executable File

#!/bin/bash
# Make ZSH the default shell environment
if [ `cat /etc/passwd | grep $USER | awk -F ':' '{print $7}'` != "/bin/zsh" ]; then
echo "Changing shell to zsh"
chsh -s $(which zsh)
fi
# # ZIM Installation
# if [ ! -d "$HOME/.zim" ]; then
# echo "Installing ZIM"
# git clone --recursive --depth=1 https://github.com/zimfw/zimfw.git \
# ${ZDOTDIR:-${HOME}}/.zim
# else
# echo "ZIM already exists."
# fi
# # Powerlevel9k Theme
# if [ ! -d "$HOME/.zim/modules/prompt/external-themes/powerlevel9k" ]; then
# echo "Installing Powerlevel9k theme"
# git clone --depth=1 https://github.com/bhilburn/powerlevel9k.git \
# ~/.zim/modules/prompt/external-themes/powerlevel9k
# ln -s ~/.zim/modules/prompt/external-themes/powerlevel9k/powerlevel9k.zsh-theme ~/.zim/modules/prompt/functions/prompt_powerlevel9k_setup
# else
# echo "Powerlevel9k already exists."
# fi
# Conda and pip
if [ ! -d "$HOME/conda" ]; then
echo "Installing Conda"
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O /tmp/miniconda.sh
bash /tmp/miniconda.sh -b -p ~/conda
rm /tmp/miniconda.sh
echo "yes" | conda install pip
else
echo "Conda already installed"
fi
# Marker
if [ ! -d "$HOME/.marker" ]; then
echo "Installing Marker"
git clone --depth=1 https://github.com/pindexis/marker $HOME/.marker
$HOME/.marker/install.py
fi
# fasd
if [ ! -d "$HOME/bin" ]; then
mkdir -p $HOME/bin
fi
if [ ! -f "$HOME/bin/fasd" ]; then
echo "Installing fasd"
wget https://raw.githubusercontent.com/clvv/fasd/master/fasd
mv fasd $HOME/bin/fasd
chmod +x $HOME/bin/fasd
fi
# linking dotfiles
$HOME/.dotfiles/dotfiles.sh link base