Clone dotfiles in case of neovim
This commit is contained in:
parent
6552a124c4
commit
aa2404161c
29
tforgione.sh
29
tforgione.sh
|
@ -104,13 +104,8 @@ git_clone() {
|
|||
fi
|
||||
}
|
||||
|
||||
configure_zsh() {
|
||||
|
||||
yes_no_ask "do you wish to install and configure zsh ?"
|
||||
if [ $? -ne 0 ]; then
|
||||
info "not installing zsh"
|
||||
return
|
||||
fi
|
||||
clone_dotfiles() {
|
||||
if [ ! -d $HOME/.config/dotfiles ]; then
|
||||
|
||||
test_command git
|
||||
if [ $? -ne 0 ]; then
|
||||
|
@ -123,6 +118,20 @@ configure_zsh() {
|
|||
fi
|
||||
fi
|
||||
|
||||
git_clone https://gitea.tforgione.fr/tforgione/dotfiles/ $HOME/.config/dotfiles
|
||||
fi
|
||||
}
|
||||
|
||||
configure_zsh() {
|
||||
|
||||
yes_no_ask "do you wish to install and configure zsh ?"
|
||||
if [ $? -ne 0 ]; then
|
||||
info "not installing zsh"
|
||||
return
|
||||
fi
|
||||
|
||||
clone_dotfiles
|
||||
|
||||
test_command zsh
|
||||
if [ $? -ne 0 ]; then
|
||||
if [ $sudo_available -ne 0 ]; then
|
||||
|
@ -139,10 +148,6 @@ configure_zsh() {
|
|||
git_clone https://github.com/robbyrussell/oh-my-zsh/ $HOME/.config/oh-my-zsh
|
||||
fi
|
||||
|
||||
if [ ! -d $HOME/.config/dotfiles ]; then
|
||||
git_clone https://gitea.tforgione.fr/tforgione/dotfiles/ $HOME/.config/dotfiles
|
||||
fi
|
||||
|
||||
if [ -f $HOME/.zshrc ]; then
|
||||
path1=`realpath $HOME/.zshrc`
|
||||
path2=`realpath $HOME/.config/dotfiles/zshrc`
|
||||
|
@ -203,6 +208,8 @@ configure_neovim() {
|
|||
return
|
||||
fi
|
||||
|
||||
clone_dotfiles
|
||||
|
||||
test_command nvim
|
||||
if [ $? -ne 0 ]; then
|
||||
info "installing neovim"
|
||||
|
|
Loading…
Reference in New Issue