X-Git-Url: https://git.r.bdr.sh/rbdr/dotfiles/blobdiff_plain/01a1f14f38652448e2d4b210a846a22e0818707b..484003107180c171a169999e7a8eb161db509071:/install_dotfiles?ds=sidebyside diff --git a/install_dotfiles b/install_dotfiles index 7943366..b4fa7f8 100755 --- a/install_dotfiles +++ b/install_dotfiles @@ -1,47 +1,70 @@ #!/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" # hush login -ln -fhs .dotfiles/hushlogin ~/.hushlogin +ln -fns .dotfiles/hushlogin ~/.hushlogin # zsh runcoms -ln -fhs .dotfiles/runcoms/zshrc ~/.zshrc -ln -fhs .dotfiles/runcoms/zshenv ~/.zshenv -ln -fhs .dotfiles/runcoms/zprofile ~/.zprofile -ln -fhs .dotfiles/runcoms/zlogout ~/.zlogout -ln -fhs .dotfiles/runcoms/zlogin ~/.zlogin +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 -fhs .dotfiles/weechat ~/.weechat +ln -fns .dotfiles/weechat ~/.weechat # VIM -ln -fhs .dotfiles/vim ~/.vim -ln -fhs .dotfiles/vimrc ~/.vimrc +ln -fns .dotfiles/vim ~/.vim +ln -fns .dotfiles/vimrc ~/.vimrc # TMUX -ln -fhs .dotfiles/tmux.conf ~/.tmux.conf +ln -fns .dotfiles/tmux.conf ~/.tmux.conf # Nethack -ln -fhs .dotfiles/nethackrc ~/.nethackrc +ln -fns .dotfiles/nethackrc ~/.nethackrc # Git -ln -fhs .dotfiles/gitconfig ~/.gitconfig +ln -fns .dotfiles/gitconfig ~/.gitconfig # Ctags -ln -fhs .dotfiles/ctags.d ~/.ctags.d +ln -fns .dotfiles/ctags.d ~/.ctags.d # XDefaults -ln -fhs .dotfiles/XDefaults ~/.XDefaults +ln -fns .dotfiles/XDefaults ~/.XDefaults # ripgrep -ln -fhs .dotfiles/rgignore ~/.rgignore +ln -fns .dotfiles/rgignore ~/.rgignore + +# tmuxp +ln -fns .dotfiles/tmuxp ~/.tmuxp # config dir mkdir -p ~/.config -#nvim -ln -fhs ../.dotfiles/config/nvim ~/.config/nvim +# 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"