This repository was archived by the owner on Feb 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·48 lines (40 loc) · 1.38 KB
/
setup.sh
File metadata and controls
executable file
·48 lines (40 loc) · 1.38 KB
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
#!/usr/bin/env bash
set -x
SRC=.
DST=~
function link () {
if [ -f "$1" ]; then
if ! [ -f "$2" ]; then
ln -s $1 $2
else
echo $2 already exists
fi
else
echo $1 does not exist
fi
}
echo ------- making ~/tmp -------
mkdir $DST/tmp
echo ------- mkshrc is bashrc -------
link $DST/.bashrc $DST/.mkshrc
echo ------- linking .vimrc to .config/nvim. creating vim backup dirs -------
mkdir -p $DST/.config/nvim
mkdir -p $DST/{.vim,.config/nvim,tmp}/{backup,swap,undo}
touch $DST/.vimrc
link $DST/.vimrc $DST/.config/nvim/init.vim
echo ------- downloading plug.vim -------
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
echo ------- downloading kitty-themes -------
git clone --depth 1 git@github.com:dexpota/kitty-themes.git ~/.config/kitty/kitty-themes
echo ------- downloading and installing external confs -------
git submodule update --init --recursive
EXT_DIR=$SRC/external
set -x
cp "$EXT_DIR/bash-sensible/sensible.bash" "$DST/.sensible.bash"
cp "$EXT_DIR/commacd/commacd.sh" "$DST/.commacd.sh"
cp "$EXT_DIR"/gocryptfs.sh/*.sh "$DST/bin/"
cp "$EXT_DIR/gp/gp" "$DST/bin/"
cp "$EXT_DIR/makeanywhere/makeanywhere" "$DST/bin/"