-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbashprofile.sh
More file actions
33 lines (29 loc) · 776 Bytes
/
bashprofile.sh
File metadata and controls
33 lines (29 loc) · 776 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
reload() {
source ~/.bash_profile
}
code() {
flatpak run com.visualstudio.code $*
}
distrobox() {
if [ $1 == "make" ]; then
distroboxname=$2
distroboxpath=$2
if [ ! -z $3 ]; then
distroboxpath=$3
fi
command distrobox create \
--yes \
--unshare-devsys \
--unshare-groups \
--unshare-ipc \
--unshare-process \
--name $distroboxname \
--image docker.io/library/ubuntu:latest \
--volume /media/xxx/Storage/Projects/$distroboxpath:/$distroboxpath \
--home /media/xxx/Storage/home/$distroboxname \
--init-hooks "sudo apt-get update && sudo apt-get upgrade && curl -fsSL https://deno.land/install.sh | sh && echo 'cd /$distroboxpath' >> ~/.bashrc" \
--additional-packages "nodejs npm curl nano"
else
command distrobox $@
fi
}