]> git.r.bdr.sh - rbdr/dotfiles/blob - install_dotfiles
b4fa7f8e8989a394bf0321a1b350f36c4b3d4d3e
[rbdr/dotfiles] / install_dotfiles
1 #!/usr/bin/env sh
2
3 echo "Installing essential software"
4
5 if command -v brew &> /dev/null; then
6 cat ./provisioning/brew_essential | xargs brew install
7 else
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
15 fi
16
17 echo "Linking runcoms"
18
19 # hush login
20 ln -fns .dotfiles/hushlogin ~/.hushlogin
21
22 # zsh runcoms
23 ln -fns .dotfiles/runcoms/zshrc ~/.zshrc
24 ln -fns .dotfiles/runcoms/zshenv ~/.zshenv
25 ln -fns .dotfiles/runcoms/zprofile ~/.zprofile
26 ln -fns .dotfiles/runcoms/zlogout ~/.zlogout
27 ln -fns .dotfiles/runcoms/zlogin ~/.zlogin
28
29 # Weechat
30 ln -fns .dotfiles/weechat ~/.weechat
31
32 # VIM
33 ln -fns .dotfiles/vim ~/.vim
34 ln -fns .dotfiles/vimrc ~/.vimrc
35
36 # TMUX
37 ln -fns .dotfiles/tmux.conf ~/.tmux.conf
38
39 # Nethack
40 ln -fns .dotfiles/nethackrc ~/.nethackrc
41
42 # Git
43 ln -fns .dotfiles/gitconfig ~/.gitconfig
44
45 # Ctags
46 ln -fns .dotfiles/ctags.d ~/.ctags.d
47
48 # XDefaults
49 ln -fns .dotfiles/XDefaults ~/.XDefaults
50
51 # ripgrep
52 ln -fns .dotfiles/rgignore ~/.rgignore
53
54 # tmuxp
55 ln -fns .dotfiles/tmuxp ~/.tmuxp
56
57 # config dir
58 mkdir -p ~/.config
59
60 # kitty
61 ln -fns ../.dotfiles/config/kitty ~/.config/kitty
62
63 # nvim
64 ln -fns ../.dotfiles/config/nvim ~/.config/nvim
65
66 # config
67 ln -fns ../.dotfiles/config/karabiner ~/.config/karabiner
68
69 # Italics setup
70 echo "Setting up terminfo"
71 tic xterm-256color-italic.terminfo