mirror of
https://github.com/sebaschi/dotfiles.git
synced 2025-11-08 21:44:27 +01:00
Add subcommand install_vim_neovim.
Installs vim config as neovim config. I.e. to use vimscript instead of lua as config for neovim.
This commit is contained in:
parent
b3e943ea91
commit
00ac22e726
30
dot-install
30
dot-install
@ -85,7 +85,6 @@ add_source_to_bashrc() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# Install bash aliases
|
|
||||||
install_bash_aliases() {
|
install_bash_aliases() {
|
||||||
echo "Installing bash aliases..."
|
echo "Installing bash aliases..."
|
||||||
|
|
||||||
@ -94,7 +93,6 @@ install_bash_aliases() {
|
|||||||
add_source_to_bashrc "bash_aliases"
|
add_source_to_bashrc "bash_aliases"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Install bash completion
|
|
||||||
install_bash_completion() {
|
install_bash_completion() {
|
||||||
echo "Installing bash completion..."
|
echo "Installing bash completion..."
|
||||||
|
|
||||||
@ -103,7 +101,6 @@ install_bash_completion() {
|
|||||||
add_source_to_bashrc "bash_completion"
|
add_source_to_bashrc "bash_completion"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Install bash environment
|
|
||||||
install_bash_env() {
|
install_bash_env() {
|
||||||
echo "Installing bash environment..."
|
echo "Installing bash environment..."
|
||||||
|
|
||||||
@ -112,7 +109,6 @@ install_bash_env() {
|
|||||||
add_source_to_bashrc "bash_env"
|
add_source_to_bashrc "bash_env"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Install bash functions
|
|
||||||
install_bash_functions() {
|
install_bash_functions() {
|
||||||
echo "Installing bash functions..."
|
echo "Installing bash functions..."
|
||||||
|
|
||||||
@ -121,7 +117,6 @@ install_bash_functions() {
|
|||||||
add_source_to_bashrc "bash_functions"
|
add_source_to_bashrc "bash_functions"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Install fedora aliases
|
|
||||||
install_bash_fedora() {
|
install_bash_fedora() {
|
||||||
echo "Installing fedora aliases..."
|
echo "Installing fedora aliases..."
|
||||||
|
|
||||||
@ -130,7 +125,6 @@ install_bash_fedora() {
|
|||||||
add_source_to_bashrc "fedora_aliases"
|
add_source_to_bashrc "fedora_aliases"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Install bash configuration (all components)
|
|
||||||
install_bash() {
|
install_bash() {
|
||||||
echo "Installing all bash configuration..."
|
echo "Installing all bash configuration..."
|
||||||
|
|
||||||
@ -144,7 +138,6 @@ install_bash() {
|
|||||||
link_file "$CONFIG_DIR/bash" "$HOME/.bash_dir"
|
link_file "$CONFIG_DIR/bash" "$HOME/.bash_dir"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Install borg backup profiles
|
|
||||||
install_borg() {
|
install_borg() {
|
||||||
echo "Installing borg backup profiles..."
|
echo "Installing borg backup profiles..."
|
||||||
|
|
||||||
@ -152,7 +145,6 @@ install_borg() {
|
|||||||
link_file "$DOTFILES_DIR/borg-backup-profiles" "$CONFIG_DIR/borg"
|
link_file "$DOTFILES_DIR/borg-backup-profiles" "$CONFIG_DIR/borg"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Install fish configuration
|
|
||||||
install_fish() {
|
install_fish() {
|
||||||
echo "Installing fish configuration..."
|
echo "Installing fish configuration..."
|
||||||
|
|
||||||
@ -160,7 +152,6 @@ install_fish() {
|
|||||||
link_file "$DOTFILES_DIR/fish" "$CONFIG_DIR/fish"
|
link_file "$DOTFILES_DIR/fish" "$CONFIG_DIR/fish"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Install ghostty configuration
|
|
||||||
install_ghostty() {
|
install_ghostty() {
|
||||||
echo "Installing ghostty configuration..."
|
echo "Installing ghostty configuration..."
|
||||||
|
|
||||||
@ -168,14 +159,12 @@ install_ghostty() {
|
|||||||
link_file "$DOTFILES_DIR/ghostty" "$CONFIG_DIR/ghostty"
|
link_file "$DOTFILES_DIR/ghostty" "$CONFIG_DIR/ghostty"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Install git configuration
|
|
||||||
install_git() {
|
install_git() {
|
||||||
echo "Installing git configuration..."
|
echo "Installing git configuration..."
|
||||||
|
|
||||||
link_file "$DOTFILES_DIR/git/gitconfig" "$HOME/.gitconfig"
|
link_file "$DOTFILES_DIR/git/gitconfig" "$HOME/.gitconfig"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Install neovim configuration
|
|
||||||
install_nvim() {
|
install_nvim() {
|
||||||
echo "Installing neovim configuration..."
|
echo "Installing neovim configuration..."
|
||||||
|
|
||||||
@ -183,14 +172,12 @@ install_nvim() {
|
|||||||
link_file "$DOTFILES_DIR/nvim" "$CONFIG_DIR/nvim"
|
link_file "$DOTFILES_DIR/nvim" "$CONFIG_DIR/nvim"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Install rsync filter rules
|
|
||||||
install_rsync() {
|
install_rsync() {
|
||||||
echo "Installing rsync filter rules..."
|
echo "Installing rsync filter rules..."
|
||||||
|
|
||||||
link_file "$DOTFILES_DIR/sync-filter-fedora/dot-rsync-filter-home" "$HOME/.rsync-filter-home"
|
link_file "$DOTFILES_DIR/sync-filter-fedora/dot-rsync-filter-home" "$HOME/.rsync-filter-home"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Install starship configuration
|
|
||||||
install_starship() {
|
install_starship() {
|
||||||
echo "Installing starship configuration..."
|
echo "Installing starship configuration..."
|
||||||
|
|
||||||
@ -198,14 +185,12 @@ install_starship() {
|
|||||||
link_file "$DOTFILES_DIR/dot-config/starship.toml" "$CONFIG_DIR/starship.toml"
|
link_file "$DOTFILES_DIR/dot-config/starship.toml" "$CONFIG_DIR/starship.toml"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Install tmux configuration
|
|
||||||
install_tmux() {
|
install_tmux() {
|
||||||
echo "Installing tmux configuration..."
|
echo "Installing tmux configuration..."
|
||||||
|
|
||||||
link_file "$DOTFILES_DIR/tmux/tmux.conf" "$HOME/.tmux.conf"
|
link_file "$DOTFILES_DIR/tmux/tmux.conf" "$HOME/.tmux.conf"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Install vim configuration
|
|
||||||
install_vim() {
|
install_vim() {
|
||||||
echo "Installing vim configuration..."
|
echo "Installing vim configuration..."
|
||||||
|
|
||||||
@ -215,7 +200,6 @@ install_vim() {
|
|||||||
link_file "$DOTFILES_DIR/vim/initvim" "$HOME/.vim/init.vim"
|
link_file "$DOTFILES_DIR/vim/initvim" "$HOME/.vim/init.vim"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Install zellij configuration
|
|
||||||
install_zellij() {
|
install_zellij() {
|
||||||
echo "Installing zellij configuration..."
|
echo "Installing zellij configuration..."
|
||||||
|
|
||||||
@ -223,14 +207,20 @@ install_zellij() {
|
|||||||
link_file "$DOTFILES_DIR/dot-config/zellij.kdl" "$CONFIG_DIR/zellij/config.kdl"
|
link_file "$DOTFILES_DIR/dot-config/zellij.kdl" "$CONFIG_DIR/zellij/config.kdl"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Install zsh configuration
|
|
||||||
install_zsh() {
|
install_zsh() {
|
||||||
echo "Installing zsh configuration..."
|
echo "Installing zsh configuration..."
|
||||||
|
|
||||||
link_file "$DOTFILES_DIR/zsh/zshrc" "$HOME/.zshrc"
|
link_file "$DOTFILES_DIR/zsh/zshrc" "$HOME/.zshrc"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Install all packages
|
# Install vimconfig as config for neovim
|
||||||
|
install_vim_neovim() {
|
||||||
|
echo "Installing init.vim as config for *neovim*"
|
||||||
|
|
||||||
|
ensure_dir "$CONFIG_DIR/nvim"
|
||||||
|
link_file "$DOTFILES_DIR/vim/initvim" "$CONFIG_DIR/nvim/init.vim"
|
||||||
|
}
|
||||||
|
|
||||||
install_all() {
|
install_all() {
|
||||||
install_bash
|
install_bash
|
||||||
install_borg
|
install_borg
|
||||||
@ -246,7 +236,6 @@ install_all() {
|
|||||||
install_zsh
|
install_zsh
|
||||||
}
|
}
|
||||||
|
|
||||||
# Parse command line arguments
|
|
||||||
if [ $# -eq 0 ]; then
|
if [ $# -eq 0 ]; then
|
||||||
usage
|
usage
|
||||||
fi
|
fi
|
||||||
@ -264,6 +253,7 @@ for arg in "$@"; do
|
|||||||
ghostty) install_ghostty ;;
|
ghostty) install_ghostty ;;
|
||||||
git) install_git ;;
|
git) install_git ;;
|
||||||
nvim) install_nvim ;;
|
nvim) install_nvim ;;
|
||||||
|
vimnvim) install_vim_neovim ;;
|
||||||
rsync) install_rsync ;;
|
rsync) install_rsync ;;
|
||||||
starship) install_starship ;;
|
starship) install_starship ;;
|
||||||
tmux) install_tmux ;;
|
tmux) install_tmux ;;
|
||||||
@ -275,4 +265,4 @@ for arg in "$@"; do
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "Installation complete!"
|
echo "Installation complete!"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user