mirror of
https://codeberg.org/diginaut/dotfiles.git
synced 2026-02-04 07:40:27 +01:00
Removed old mercural install stuff; fix for fish
This commit is contained in:
38
install.sh
38
install.sh
@@ -1,29 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# inspired by rrix' dotfiles
|
# inspired by rrix' dotfiles
|
||||||
|
|
||||||
install_hg()
|
|
||||||
{
|
|
||||||
# Mercurial extensions
|
|
||||||
touch "${HOME}/.dot_has_hg"
|
|
||||||
HGDIR="${HOME}/workspace/application_addons/mercurial"
|
|
||||||
mkdir -p $HGDIR
|
|
||||||
cd $HGDIR || exit
|
|
||||||
|
|
||||||
for REPO in Mekk/mercurial_keyring sjl/hg-prompt durin42/hg-git yujiewu/hgflow
|
|
||||||
do
|
|
||||||
REPODIR="${REPO##*/}"
|
|
||||||
echo $REPODIR
|
|
||||||
if [ ! -d "$HGDIR/$REPODIR" ]; then
|
|
||||||
hg clone http://bitbucket.org/$REPO
|
|
||||||
#echo http://bitbucket.org/$REPO
|
|
||||||
else
|
|
||||||
cd $HGDIR/$REPODIR || exit
|
|
||||||
#echo $HGDIR/$REPODIR
|
|
||||||
hg pull -u
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
install_fish()
|
install_fish()
|
||||||
{
|
{
|
||||||
touch ~/.dot/.dot_has_fish
|
touch ~/.dot/.dot_has_fish
|
||||||
@@ -102,21 +79,8 @@ if [ ! -d "${HOME}/.vim/autoload/plug.vim" ]; then
|
|||||||
vim
|
vim
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#if [ -e ~/.dot_has_hg ]; then
|
|
||||||
# install_hg
|
|
||||||
#elif [ ! -e ~/.dot_no_hg ]; then
|
|
||||||
# echo
|
|
||||||
# echo "Do you wish to install mercurial stuff?"
|
|
||||||
# select yn in "Yes" "No"; do
|
|
||||||
# case $yn in
|
|
||||||
# Yes ) install_hg; break;;
|
|
||||||
# No ) touch ~/.dot_no_hg; break;;
|
|
||||||
# esac
|
|
||||||
# done
|
|
||||||
#fi
|
|
||||||
|
|
||||||
if [ -e ~/.dot/.dot_has_fish ]; then
|
if [ -e ~/.dot/.dot_has_fish ]; then
|
||||||
install_hg
|
install_fish
|
||||||
elif [ ! -e ~/.dot/.dot_no_fish ]; then
|
elif [ ! -e ~/.dot/.dot_no_fish ]; then
|
||||||
echo
|
echo
|
||||||
echo "Do you wish to install fish shell configuration?"
|
echo "Do you wish to install fish shell configuration?"
|
||||||
|
|||||||
Reference in New Issue
Block a user