]> git.r.bdr.sh - rbdr/dotfiles/blame - install_dotfiles
Add essential provisioning
[rbdr/dotfiles] / install_dotfiles
CommitLineData
a0d257f0
BB
1#!/usr/bin/env sh
2
48400310
RBR
3echo "Installing essential software"
4
5if command -v brew &> /dev/null; then
6 cat ./provisioning/brew_essential | xargs brew install
7else
8 if command -v apt &> /dev/null; then
9 echo "Warning: ASDF needs to be installed manually"
10 cat ./provisioning/apt_essential | xargs apt install
11 else
12 echo "Error: No valid package manager. Make sure brew or apt are available."
13 exit 1
14 fi
15fi
16
a0d257f0
BB
17echo "Linking runcoms"
18
64964100 19# hush login
cd3948f4 20ln -fns .dotfiles/hushlogin ~/.hushlogin
64964100
RBR
21
22# zsh runcoms
cd3948f4
RBR
23ln -fns .dotfiles/runcoms/zshrc ~/.zshrc
24ln -fns .dotfiles/runcoms/zshenv ~/.zshenv
25ln -fns .dotfiles/runcoms/zprofile ~/.zprofile
26ln -fns .dotfiles/runcoms/zlogout ~/.zlogout
27ln -fns .dotfiles/runcoms/zlogin ~/.zlogin
a0d257f0
BB
28
29# Weechat
cd3948f4 30ln -fns .dotfiles/weechat ~/.weechat
a0d257f0
BB
31
32# VIM
cd3948f4
RBR
33ln -fns .dotfiles/vim ~/.vim
34ln -fns .dotfiles/vimrc ~/.vimrc
a0d257f0
BB
35
36# TMUX
cd3948f4 37ln -fns .dotfiles/tmux.conf ~/.tmux.conf
a0d257f0
BB
38
39# Nethack
cd3948f4 40ln -fns .dotfiles/nethackrc ~/.nethackrc
a0d257f0
BB
41
42# Git
cd3948f4 43ln -fns .dotfiles/gitconfig ~/.gitconfig
a0d257f0 44
7fd50ecb 45# Ctags
cd3948f4 46ln -fns .dotfiles/ctags.d ~/.ctags.d
7fd50ecb 47
61396837 48# XDefaults
cd3948f4 49ln -fns .dotfiles/XDefaults ~/.XDefaults
61396837 50
64964100 51# ripgrep
cd3948f4 52ln -fns .dotfiles/rgignore ~/.rgignore
64964100 53
4b32a942 54# tmuxp
cd3948f4 55ln -fns .dotfiles/tmuxp ~/.tmuxp
4b32a942 56
01a1f14f
RBR
57# config dir
58mkdir -p ~/.config
59
4b32a942 60# kitty
cd3948f4 61ln -fns ../.dotfiles/config/kitty ~/.config/kitty
4b32a942 62
3785c110 63# nvim
cd3948f4 64ln -fns ../.dotfiles/config/nvim ~/.config/nvim
01a1f14f 65
68ba6555 66# config
cd3948f4 67ln -fns ../.dotfiles/config/karabiner ~/.config/karabiner
68ba6555 68
8c7cbd32 69# Italics setup
a0d257f0
BB
70echo "Setting up terminfo"
71tic xterm-256color-italic.terminfo