2019-12-19 11:41:18 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
2023-04-05 17:20:05 +02:00
|
|
|
dotPath=".config/dotfiles"
|
|
|
|
|
|
|
|
cp $dotPath/.zshrc $dotPath/.vimrc $dotPath/.zprofile $dotPath/.gitconfig $dotPath/.p10k.zsh .
|
|
|
|
if [ -d ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k ]; then
|
|
|
|
echo "pl10k already exists, skipping"
|
|
|
|
else
|
|
|
|
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
|
|
|
|
fi
|
2020-01-03 13:19:41 +01:00
|
|
|
|
|
|
|
if [ $(id -u) -ne 0 ]
|
|
|
|
then
|
2020-01-26 15:13:19 +01:00
|
|
|
echo "run me as root to copy cdbm & lsd to the system"
|
2020-01-03 13:19:41 +01:00
|
|
|
else
|
|
|
|
if [ ! -d /usr/local/bin ]; then mkdir -p /usr/local/bin; fi
|
2020-01-07 09:20:50 +01:00
|
|
|
OS=`uname`
|
|
|
|
case "$OS" in
|
|
|
|
Darwin)
|
2023-04-05 17:31:20 +02:00
|
|
|
cp $dotPath/cdbm/Darwin/cdbm /usr/local/bin
|
2020-01-07 09:20:50 +01:00
|
|
|
;;
|
|
|
|
Linux)
|
2023-04-05 17:31:20 +02:00
|
|
|
cp $dotPath//cdbm/Linux/cdbm /usr/local/bin
|
2020-01-07 09:20:50 +01:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
$OS is not supported
|
|
|
|
;;
|
|
|
|
esac
|
2020-01-03 13:19:41 +01:00
|
|
|
fi
|
|
|
|
|
2019-12-19 11:41:18 +01:00
|
|
|
|