-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathuser_init
More file actions
56 lines (48 loc) · 1.77 KB
/
Copy pathuser_init
File metadata and controls
56 lines (48 loc) · 1.77 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
49
50
51
52
53
54
55
56
#!/bin/bash
#This script is executed every time your instance is spawned.
# Clone the planq repo and get user_init up to date
cd
cd my_data
rm -rf planq
git clone https://github.com/tihomir-kit/planq
cp ./planq/user_init ./user_init # Ensure we have the latest version of user_init
# Append planq .bashrc to .bashrc if it's not already there
if ! grep -q "planq" ~/.bashrc; then
echo "" >> ~/.bashrc
echo "# Planq additions to .bashrc" >> ~/.bashrc
echo "source ~/my_data/planq/.bashrc" >> ~/.bashrc
fi
# Make planq scripts executable
for file in ~/my_data/planq/scripts/*;
do
if [[ -f $file ]]; then
chmod +x $file
fi
done
# Make planq memos executable
for file in ~/my_data/planq/memos/*;
do
if [[ -f $file ]]; then
chmod +x $file
fi
done
# fzf on ParrotOS is stale, so we need to install it from source
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
echo "y" | ~/.fzf/install
# Set up gnome-keyring-daemon so we don't get prompted to set a password during apt installations
echo -n "htb-tkit" | gnome-keyring-daemon --unlock
# Set default file types to be opened by VS Code (codium) by default
xdg-mime default codium.desktop application/octet-stream # files with no extension
xdg-mime default codium.desktop text/plain
xdg-mime default codium.desktop application/x-shellscript
xdg-mime default codium.desktop text/x-csharp
xdg-mime default codium.desktop text/x-c
xdg-mime default codium.desktop text/x-python
xdg-mime default codium.desktop application/javascript
xdg-mime default codium.desktop text/typescript
xdg-mime default codium.desktop text/html
xdg-mime default codium.desktop text/css
xdg-mime default codium.desktop application/x-ruby
xdg-mime default codium.desktop application/x-perl
xdg-mime default codium.desktop application/x-php
sudo apt update &