-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy
More file actions
executable file
·37 lines (29 loc) · 924 Bytes
/
deploy
File metadata and controls
executable file
·37 lines (29 loc) · 924 Bytes
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
#!/bin/bash
# This script is used to deploy these dot files to a new server
export XDG_CONFIG_HOME=$HOME/.config
# Set up shell
cat <<EOF >>$HOME/.bashrc
#
# ~/.bashrc
#
export XDG_CONFIG_HOME=~/.config/
# cloned config repo folder
export CUSTOM_CONFIG_HOME=/fileserver/fastscratch/liam/configs/
# If not running interactively, don't do anything
[[ \$- != *i* ]] && return
source \$CUSTOM_CONFIG_HOME/shell/bashrc_wombat
EOF
cat <<EOF >>$HOME/.inputrc
\$include /fileserver/fastscratch/liam/configs/shell/inputrc
EOF
# Set up neovim and tmux
mkdir -p $XDG_CONFIG_HOME/{nvim,tmux}
cat <<EOF >>$XDG_CONFIG_HOME/nvim/init.vim
" ~/.config/nvim/init.vim
source /fileserver/fastscratch/liam/configs/nvim/init.vim
EOF
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
cat <<EOF >>$XDG_CONFIG_HOME/tmux/tmux.conf
# ~/.config/tmux/tmux.conf
source-file /fileserver/fastscratch/liam/configs/tmux/tmux.conf
EOF