-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathignore.sh
More file actions
78 lines (64 loc) · 1.36 KB
/
Copy pathignore.sh
File metadata and controls
78 lines (64 loc) · 1.36 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#!/bin/sh
#move to home directory
cd ~
#download and install ailases
git clone https://github.com/TheTrueZeroTwo/DotFiles /home/$USER/
chmod +x /home/$USER/dotfile-install.sh
/home/$USER/dotfile-install.sh
#setup home directory
mkdir tools
mkdir git
cd Downloads
mkdir temp
cd ..
cd Documents
mkdir dnd
mkdir notes
mkdir work
mkdir pentest
cd pentest
mkdir HTB
cd ..
cd ..
cd music
mkdir youtube
mkdir local
cd ..
cd Pictures
mkdir wallpapers
mkdir meme
mkdir manga
mkdir Screenshots
mkdir pfp
cd ..
cd Videos
mkdir background
mkdir movies
cd ..
##########
read -p "Would you like to setup network drives? " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
echo "What is the ip address or the host name?"
read -p 'location: ' location
#check if directory exists
mkdir -p /media/$location
echo "What is the username?"
read -p 'Username: ' username
echo "What is the password?"
read -p 'Password: ' password
echo "Is this a windows mount?"
read -r -p 'CIFS? y/n: ' cifs
case $input in
[yY][eE][sS]|[yY])
echo "$location /media/$location cifs username=$username,passwrod=$password,vers=2.0 0 0"
;;
[nN][oO]|[nN])
echo "$location /media/$location username=$username,passwrod=$password 0 0"
;;
*)
echo "Invalid input..."
exit 1
;;
fi