aboutsummaryrefslogtreecommitdiff
path: root/install_dotfiles
blob: b4fa7f8e8989a394bf0321a1b350f36c4b3d4d3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
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"

# 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 -fns .dotfiles/weechat ~/.weechat

# VIM
ln -fns .dotfiles/vim ~/.vim
ln -fns .dotfiles/vimrc ~/.vimrc

# TMUX
ln -fns .dotfiles/tmux.conf ~/.tmux.conf

# Nethack
ln -fns .dotfiles/nethackrc ~/.nethackrc

# Git
ln -fns .dotfiles/gitconfig ~/.gitconfig

# Ctags
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