X-Git-Url: https://git.r.bdr.sh/rbdr/dotfiles/blobdiff_plain/7fd50ecb4c97eeba1abe87bcc8ca1e32b133c281..484003107180c171a169999e7a8eb161db509071:/install_dotfiles?ds=inline diff --git a/install_dotfiles b/install_dotfiles index 9b0f93b..b4fa7f8 100755 --- a/install_dotfiles +++ b/install_dotfiles @@ -1,32 +1,71 @@ #!/usr/bin/env sh +echo "Installing essential software" + +if command -v brew &> /dev/null; then + cat ./provisioning/brew_essential | xargs brew install +else + if command -v apt &> /dev/null; then + echo "Warning: ASDF needs to be installed manually" + cat ./provisioning/apt_essential | xargs apt install + else + echo "Error: No valid package manager. Make sure brew or apt are available." + exit 1 + fi +fi + echo "Linking runcoms" -# ZSH runcoms -ln -s .dotfiles/runcoms/zshrc ~/.zshrc -ln -s .dotfiles/runcoms/zshenv ~/.zshenv -ln -s .dotfiles/runcoms/zprofile ~/.zprofile -ln -s .dotfiles/runcoms/zlogout ~/.zlogout -ln -s .dotfiles/runcoms/zlogin ~/.zlogin +# hush login +ln -fns .dotfiles/hushlogin ~/.hushlogin + +# zsh runcoms +ln -fns .dotfiles/runcoms/zshrc ~/.zshrc +ln -fns .dotfiles/runcoms/zshenv ~/.zshenv +ln -fns .dotfiles/runcoms/zprofile ~/.zprofile +ln -fns .dotfiles/runcoms/zlogout ~/.zlogout +ln -fns .dotfiles/runcoms/zlogin ~/.zlogin # Weechat -ln -s .dotfiles/weechat ~/.weechat +ln -fns .dotfiles/weechat ~/.weechat # VIM -ln -s .dotfiles/vim ~/.vim -ln -s .dotfiles/vimrc ~/.vimrc +ln -fns .dotfiles/vim ~/.vim +ln -fns .dotfiles/vimrc ~/.vimrc # TMUX -ln -s .dotfiles/tmux.conf ~/.tmux.conf +ln -fns .dotfiles/tmux.conf ~/.tmux.conf # Nethack -ln -s .dotfiles/nethackrc ~/.nethackrc +ln -fns .dotfiles/nethackrc ~/.nethackrc # Git -ln -s .dotfiles/gitconfig ~/.gitconfig +ln -fns .dotfiles/gitconfig ~/.gitconfig # Ctags -ln -s .dotfiles/ctags.d ~/.ctags.d +ln -fns .dotfiles/ctags.d ~/.ctags.d + +# XDefaults +ln -fns .dotfiles/XDefaults ~/.XDefaults + +# ripgrep +ln -fns .dotfiles/rgignore ~/.rgignore + +# tmuxp +ln -fns .dotfiles/tmuxp ~/.tmuxp + +# config dir +mkdir -p ~/.config + +# kitty +ln -fns ../.dotfiles/config/kitty ~/.config/kitty + +# nvim +ln -fns ../.dotfiles/config/nvim ~/.config/nvim + +# config +ln -fns ../.dotfiles/config/karabiner ~/.config/karabiner +# Italics setup echo "Setting up terminfo" tic xterm-256color-italic.terminfo