-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup
More file actions
executable file
·38 lines (34 loc) · 851 Bytes
/
Copy pathsetup
File metadata and controls
executable file
·38 lines (34 loc) · 851 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
38
#!/bin/env sh
packages_arg="++"
cd "$(dirname "$0")"
# --- Bash
ln -sf "$PWD/bash/.bashrc" "$HOME/.bashrc"
# --- Kitty
ln -sf "$PWD/kitty/kitty.conf" "$HOME/.config/kitty/kitty.conf"
# --- Nano
ln -sf "$PWD/nano/.nanorc" "$HOME/.nanorc"
ln -sf "$PWD/nano/.nanotc" "$HOME/.nanotc"
rm -f "$PWD/nano/.nanotc/.nanotc" # No idea why I get a link inside there.
for arg in "$@"; do
if [ "$arg" = "$packages_arg" ]; then
sudo apt update
sudo apt install \
build-essential \
git \
valgrind \
entr \
dmd \
ldc \
kitty \
wine \
gimp \
inkscape \
ascii \
cloc \
dos2unix
continue
fi
echo "What do you mean by \"$arg\"? This is not funny."
break
done
echo "Done!"